Documentation ¶
Index ¶
- Constants
- Variables
- func New() *zerolog.Logger
- type LoggerProvider
- type LoggerProviderHook
- func (lph *LoggerProviderHook) AddCaller(caller string) *zerolog.Event
- func (lph *LoggerProviderHook) AddDateTime() *zerolog.Event
- func (lph *LoggerProviderHook) AddErrorStack(errorStack error) *zerolog.Event
- func (lph *LoggerProviderHook) HandleLevel(level string) *zerolog.Event
- func (lph *LoggerProviderHook) LoggerStream(level string, errorStack error, caller string, msg string) *zerolog.Logger
- func (lph *LoggerProviderHook) Run(e *zerolog.Event, level zerolog.Level, msg string)
Constants ¶
Variables ¶
View Source
var LOGGER *zerolog.Logger
View Source
var StaticCaller string
View Source
var StaticError error
Functions ¶
Types ¶
type LoggerProvider ¶
type LoggerProvider struct {
// contains filtered or unexported fields
}
func (*LoggerProvider) New ¶
func (l *LoggerProvider) New() *zerolog.Logger
func (*LoggerProvider) StdOut ¶
func (l *LoggerProvider) StdOut() *zerolog.ConsoleWriter
type LoggerProviderHook ¶
type LoggerProviderHook struct {
// contains filtered or unexported fields
}
func (*LoggerProviderHook) AddCaller ¶
func (lph *LoggerProviderHook) AddCaller(caller string) *zerolog.Event
func (*LoggerProviderHook) AddDateTime ¶
func (lph *LoggerProviderHook) AddDateTime() *zerolog.Event
func (*LoggerProviderHook) AddErrorStack ¶
func (lph *LoggerProviderHook) AddErrorStack(errorStack error) *zerolog.Event
func (*LoggerProviderHook) HandleLevel ¶
func (lph *LoggerProviderHook) HandleLevel(level string) *zerolog.Event
func (*LoggerProviderHook) LoggerStream ¶
Click to show internal directories.
Click to hide internal directories.