Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Debug() *zerolog.Event
- func (l *Logger) DebugF(functionName string) *zerolog.Event
- func (l *Logger) Error() *zerolog.Event
- func (l *Logger) ErrorF(functionName string) *zerolog.Event
- func (l *Logger) Fatal() *zerolog.Event
- func (l *Logger) FatalF(functionName string) *zerolog.Event
- func (l *Logger) GetLogger() *zerolog.Logger
- func (l *Logger) Info() *zerolog.Event
- func (l *Logger) InfoEvent(eventType string, eventName string, beforeMsg func(event *zerolog.Event))
- func (l *Logger) InfoEventCustom(eventType string, eventName string) *zerolog.Event
- func (l *Logger) InfoEventF(eventType string, eventName string, functionName string) *zerolog.Event
- func (l *Logger) InfoF(functionName string) *zerolog.Event
- func (l *Logger) Panic() *zerolog.Event
- func (l *Logger) PanicF(functionName string) *zerolog.Event
- func (l *Logger) Warn() *zerolog.Event
- func (l *Logger) WarnF(functionName string) *zerolog.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { // This is where the entire config lies... Config config.Config // Usually we would like to create logs to: StdOut, In some file, or event output elsewhere! // Logrus has only 1 output, so we decided to create multiple of them! // We should create a default channel with stdout // And additional if the user wants to other different outputs Logger *zerolog.Logger // Main Writer MainWriter io.Writer }
func (*Logger) DebugF ¶
DebugF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) ErrorF ¶
ErrorF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) InfoEvent ¶
func (l *Logger) InfoEvent( eventType string, eventName string, beforeMsg func(event *zerolog.Event), )
InfoEvent -> when executing some events
func (*Logger) InfoEventCustom ¶
InfoEventCustom -> when executing some events
func (*Logger) InfoEventF ¶
func (l *Logger) InfoEventF( eventType string, eventName string, functionName string, ) *zerolog.Event
InfoEventF -> with function name
Click to show internal directories.
Click to hide internal directories.