Documentation
¶
Index ¶
- Variables
- func Debug(msg string)
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Error(msg string)
- func Errorf(format string, v ...interface{})
- func Errorln(v ...interface{})
- func Info(msg string)
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func KVError(kv KV, msg string)
- func KVErrorf(kv KV, format string, v ...interface{})
- func KVErrorln(kv KV, v ...interface{})
- func New() zerolog.Logger
- func SetApplication(app string)
- func SetLevel(level string)
- func Warn(msg string)
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
- type KV
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = zerolog.New(os.Stdout).With().Timestamp().Logger()
Logger is the global logger with predefined settings
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf prints formatted message with DEBUG severity
func Debugln ¶
func Debugln(v ...interface{})
Debugln concatenates arguments and prints them with DEBUG severity
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf prints formatted message with ERROR severity
func Errorln ¶
func Errorln(v ...interface{})
Errorln concatenates arguments and prints them with ERROR severity
func Infof ¶
func Infof(format string, v ...interface{})
Infof prints formatted message with INFO severity
func Infoln ¶
func Infoln(v ...interface{})
Infoln concatenates arguments and prints them with INFO severity
func KVErrorln ¶
func KVErrorln(kv KV, v ...interface{})
KVErrorln concatenates arguments and prints them with ERROR severity with attached KV map
func SetApplication ¶
func SetApplication(app string)
SetApplication appends application name string to log messages
Types ¶
Click to show internal directories.
Click to hide internal directories.