Versions in this module Expand all Collapse all v1 v1.0.1002 Mar 29, 2024 v1.0.1001 Aug 22, 2023 v1.0.1000 Aug 14, 2023 Changes in this version + var LoggerConfigManual = map[string]string + func GetLogLevelPrintString(level LogLevel) string + func GetLogLevelString(level LogLevel) string + func SetManual(man map[string]string) map[string]string + type Caller struct + FName string + FNameShort string + File string + Line int + func GetCaller(skip int) (cs Caller) + func (c Caller) String() string + type DatadogTraceLog struct + Caller string + Env string + Key string + Level LogLevel + Msg any + Operation string + ServiceName string + SpanID string + TraceID string + type DebugLevel int + const DebugLevelError + const DebugLevelInfo + const DebugLevelTrace + const DebugLevelVerbose + const DebugLevelWarning + func GetDebugLevelFromString(level string) DebugLevel + type LogLevel int + const LogLevelDebug + const LogLevelError + const LogLevelFatal + const LogLevelInfo + const LogLevelNotice + const LogLevelSuccess + const LogLevelTrace + const LogLevelWarning + type Logger interface + Clean func() Logger + Close func() + CloseWithTimeout func(timeout time.Duration) + Debug func(format interface{}, input ...interface{}) + Error func(format interface{}, input ...interface{}) Logger + GetLogLevel func() (level DebugLevel) + GetOutputFormat func() OutputFormat + GetPrintToConsole func() (pr bool) + Info func(format interface{}, input ...interface{}) + Init func(namespace, version string) + InitWithConfig func(namespace, version string, config *LoggerConfig) + Kill func() + New func() Logger + NewSystemLogger func() *log.Logger + Notice func(format interface{}, input ...interface{}) + ParsingLog func(msg LoggerMessage) (raw string) + Printf func(string, ...interface{}) + Quit func() + RunDatadogTraceLogExporter func() + SendDataDogTraceLog func(data *DatadogTraceLog) + ServiceName func() string + ServiceVersion func() string + SetDatadogExporterContentEncoding func(en string) + SetLogFile func(*LoggingFile) + SetLogLevel func(level DebugLevel) + SetLogNoOfChunk func(cc int) + SetLogSendInterval func(cc int) + SetOnLoggerHandler func(f func(msg LoggerMessage, raw string)) + SetOutputFormat func(OutputFormat) + SetPrintToConsole func(pr bool) + SetSendToDatadog func(send bool) + Success func(format interface{}, input ...interface{}) + Trace func(format interface{}, input ...interface{}) + Warning func(format interface{}, input ...interface{}) + Write func(p []byte) (int, error) + type LoggerConfig struct + DatadogExporterContentEncoding string + File *LoggingFile + Format string + Level string + LogNoOfChunk int + LogSendInterval int + SendToDataDog bool + type LoggerMessage struct + File string + FuncName string + ID string + Internal bool + Level LogLevel + LevelName string + Line int + Message interface{} + Time time.Time + type LoggingFile struct + Compress bool + Enable bool + MaxAge int + MaxSize int + Output string + type OutputFormat int + const OutputFormatDefault + const OutputFormatJSON + func GetOutputFormatFromString(op string) OutputFormat