Documentation ¶
Index ¶
- func Debug(msg string, fields ...zapcore.Field)
- func Error(msg string, fields ...zapcore.Field)
- func Fatal(msg string, fields ...zapcore.Field)
- func Info(msg string, fields ...zapcore.Field)
- func Panic(msg string, fields ...zapcore.Field)
- func Setup(level, format string)
- func Warn(msg string, fields ...zapcore.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(level, format string)
Setup our logging library. The logs can be written in console format (the console format is compatible with logfmt) or in json format. The default is console, because it is better to read during development. In a production environment you should consider to use json, so that the logs can be parsed by a logging system like Elasticsearch. Next to the log format it is also possible to configure the log leven. The accepted values are "debug", "info", "warn", "error", "fatal" and "panic". The default log level is "info".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.