Documentation ¶
Index ¶
- type Logger
- func (l *Logger) AddAdditionalInfo(e *zerolog.Event) *zerolog.Event
- func (l *Logger) LD() *zerolog.Event
- func (l *Logger) LDF(functionName string) *zerolog.Event
- func (l *Logger) LDebug() *zerolog.Event
- func (l *Logger) LDebugF(functionName string) *zerolog.Event
- func (l *Logger) LE() *zerolog.Event
- func (l *Logger) LEF(functionName string) *zerolog.Event
- func (l *Logger) LError() *zerolog.Event
- func (l *Logger) LErrorF(functionName string) *zerolog.Event
- func (l *Logger) LEvent(eventType string, eventName string, beforeMsg func(event *zerolog.Event))
- func (l *Logger) LEventCustom(eventType string, eventName string) *zerolog.Event
- func (l *Logger) LEventF(eventType string, eventName string, functionName string) *zerolog.Event
- func (l *Logger) LF() *zerolog.Event
- func (l *Logger) LFF(functionName string) *zerolog.Event
- func (l *Logger) LFatal() *zerolog.Event
- func (l *Logger) LFatalF(functionName string) *zerolog.Event
- func (l *Logger) LI() *zerolog.Event
- func (l *Logger) LIF(functionName string) *zerolog.Event
- func (l *Logger) LInfo() *zerolog.Event
- func (l *Logger) LInfoF(functionName string) *zerolog.Event
- func (l *Logger) LP() *zerolog.Event
- func (l *Logger) LPF(functionName string) *zerolog.Event
- func (l *Logger) LPanic() *zerolog.Event
- func (l *Logger) LPanicF(functionName string) *zerolog.Event
- func (l *Logger) LW() *zerolog.Event
- func (l *Logger) LWF(functionName string) *zerolog.Event
- func (l *Logger) LWarn() *zerolog.Event
- func (l *Logger) LWarnF(functionName string) *zerolog.Event
- func (l *Logger) SetAddInfo(k, v string) *Logger
- func (l *Logger) SetFunctionName(functionName string) *Logger
- func (l *Logger) SetModuleName(moduleName string) *Logger
- func (l *Logger) SetSubModuleName(subModuleName string) *Logger
- func (l *Logger) SetVersionNr(versionNr string) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { // Logger -> you can set the logger by yourself, or you can indicate a channel name // and it will bind automatically with it Logger *model.Logger // ChannelName -> it's automatically binding with the config file if exists! ChannelName string // These are additional info/params ModuleName string SubModuleName string FunctionName string // VersionNr string // These are additional keys AdditionalInfo map[string]string // contains filtered or unexported fields }
func (*Logger) AddAdditionalInfo ¶
func (*Logger) LDF ¶
LDF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LDebugF ¶
LDebugF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LEF ¶
LEF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LErrorF ¶
LErrorF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LEventCustom ¶
func (*Logger) LFF ¶
LFF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LFatalF ¶
LFatalF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LIF ¶
LIF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LInfoF ¶
LInfoF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LPF ¶
LPF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LPanicF ¶
LPanicF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LWF ¶
LWF -> when you need specifically to indicate in what function the logging is happening
func (*Logger) LWarnF ¶
LWarnF -> when you need specifically to indicate in what function the logging is happening