log

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package log provides xd's minimal logger framework

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug prints debug message

func Debugf

func Debugf(f string, args ...interface{})

Debugf prints formatted debug message

func Error

func Error(msg string)

Error prints error log message

func Errorf

func Errorf(f string, args ...interface{})

Errorf prints formatted error log message

func Fatal

func Fatal(msg string)

Fatal print fatal error and panic

func Fatalf

func Fatalf(f string, args ...interface{})

Fatalf print formatted fatal error and panic

func Info

func Info(msg string)

Info prints info log message

func Infof

func Infof(f string, args ...interface{})

Infof prints formatted info log message

func SetLevel

func SetLevel(l string)

SetLevel sets global logger level

func SetOutput

func SetOutput(w io.Writer)

SetOutput sets logging to output to a writer

func Warn

func Warn(msg string)

Warn prints warn log message

func Warnf

func Warnf(f string, args ...interface{})

Warnf prints formatted warn log message

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL