Versions in this module Expand all Collapse all v0 v0.0.5001 Jun 30, 2023 v0.0.5 Jun 27, 2023 Changes in this version type Caller + FName string + FNameShort string + type DatadogTraceLog struct + Caller string + Env string + Key string + Level LogLevel + Msg any + Operation string + ServiceName string + SpanID string + TraceID string type LogLevel + const LogLevelFatal type Logger + Clean func() Logger + Close func() + CloseWithTimeout func(timeout time.Duration) + InitWithConfig func(namespace, version string, config *LoggerConfig) + Kill func() + RunDatadogTraceLogExporter func() + SendDataDogTraceLog func(data *DatadogTraceLog) + SetDatadogExporterContentEncoding func(en string) + SetLogNoOfChunk func(cc int) + SetLogSendInterval func(cc int) + SetSendToDatadog func(send bool) type LoggerConfig + DatadogExporterContentEncoding string + LogNoOfChunk int + LogSendInterval int + SendToDataDog bool type LoggerMessage + Internal bool v0.0.4 Jan 31, 2023 Changes in this version type Logger + Debugf func(format string, input ...interface{}) + DisableColor func(val bool) + Errorf func(format string, input ...interface{}) + Infof func(format string, input ...interface{}) + Warnf func(format string, input ...interface{}) type LoggerConfig + DisableColor bool + HideConsole bool type LoggingFile + Compress bool + Json bool v0.0.3 Jan 16, 2022 v0.0.2 Jan 16, 2022 v0.0.2-dev Jan 16, 2022 v0.0.1 Dec 28, 2021 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 + File string + Fname string + FnameShort string + Line int + func GetCaller(skip int) (cs Caller) + func (c Caller) String() 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 LogLevelInfo + const LogLevelNotice + const LogLevelSuccess + const LogLevelTrace + const LogLevelWarning + type Logger interface + 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) + 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() + ServiceName func() string + ServiceVersion func() string + SetLogFile func(LoggingFile) + SetLogLevel func(level DebugLevel) + SetOnLoggerHandler func(f func(msg LoggerMessage, raw string)) + SetOutputFormat func(OutputFormat) + SetPrintToConsole func(pr 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 + File LoggingFile + Format string + HideTraceConsole bool + Level string + type LoggerMessage struct + File string + FuncName string + ID string + Level LogLevel + LevelName string + Line int + Message interface{} + Time time.Time + type LoggingFile struct + Enable bool + MaxAge int + MaxSize int + Output string + type OutputFormat int + const OutputFormatDefault + const OutputFormatJSON + func GetOutputFormatFromString(op string) OutputFormat