Versions in this module Expand all Collapse all v0 v0.0.15 Jun 12, 2024 v0.0.14 Jun 12, 2024 v0.0.13 Apr 13, 2024 v0.0.12 Mar 9, 2024 Changes in this version + func ColorLogFormatter(logData *LogData) string + func DefaultLogFormatter(logData *LogData) string + type DefaultLogger struct + func NewDefaultLogger(path string, handler ILogHandler, logDataBuilder func(data *LogData)) *DefaultLogger + func (ss *DefaultLogger) Debugf(format string, args ...any) + func (ss *DefaultLogger) Errorf(format string, args ...any) + func (ss *DefaultLogger) Fatalf(format string, args ...any) + func (ss *DefaultLogger) Infof(format string, args ...any) + func (ss *DefaultLogger) Tracef(format string, args ...any) + func (ss *DefaultLogger) Warnf(format string, args ...any) + type ILogHandler interface + Log func(data *LogData) + func NewSimpleLogHandler() ILogHandler + type ILogger interface + Debugf func(format string, args ...any) + Errorf func(format string, args ...any) + Fatalf func(format string, args ...any) + Infof func(format string, args ...any) + Tracef func(format string, args ...any) + Warnf func(format string, args ...any) + type ILoggerInjector interface + type Level int + const DEBUG + const ERROR + const FATAL + const INFO + const NONE + const TRACE + const WARN + type LogData struct + Custom []any + File string + ID string + Level Level + Line int + Message func() string + Name string + Path string + Time time.Time + type LogFormatterContainer struct + func NewLogFormatterRepository() *LogFormatterContainer + func (ss *LogFormatterContainer) AddFormatter(name string, formatter func(logData *LogData) string) + func (ss *LogFormatterContainer) GetFormatter(name string) func(logData *LogData) string + type Logger struct + func (ss *Logger[T]) Get(logDataBuilder func(data *LogData)) ILogger