Versions in this module Expand all Collapse all v1 v1.2.0 Sep 28, 2026 Changes in this version + const EnvLogFormat + const EnvLogLevel + const FieldArrayID + const FieldComponent + const FieldDevicePath + const FieldDurationMs + const FieldError + const FieldNodeID + const FieldOperation + const FieldProtocol + const FieldStagingPath + const FieldTargetPath + const FieldVolumeID + const FieldVolumeName + const RequestIDField + const RequestIDKey + var AllLevels = []Level + func Debug(msg string) + func Debugf(format string, args ...interface{}) + func Error(msg string) + func Errorf(format string, args ...interface{}) + func Fatal(msg string) + func Fatalf(format string, args ...interface{}) + func Info(msg string) + func Infof(format string, args ...interface{}) + func Panic(msg string) + func Panicf(format string, args ...interface{}) + func SetFormat(format string) + func SetLevel(level Level) + func SetOutput(output io.Writer) + func Trace(msg string) + func Tracef(format string, args ...interface{}) + func Warn(msg string) + func Warnf(format string, args ...interface{}) + type CsmLog struct + func GetLogger() *CsmLog + func New(format string, level Level, output io.Writer) *CsmLog + func WithContext(ctx context.Context) *CsmLog + func WithFields(fields Fields) *CsmLog + func (l *CsmLog) Debug(msg string) + func (l *CsmLog) Debugf(format string, args ...interface{}) + func (l *CsmLog) Error(msg string) + func (l *CsmLog) Errorf(format string, args ...interface{}) + func (l *CsmLog) Fatal(msg string) + func (l *CsmLog) Fatalf(format string, args ...interface{}) + func (l *CsmLog) GetLevel() Level + func (l *CsmLog) Info(msg string) + func (l *CsmLog) Infof(format string, args ...interface{}) + func (l *CsmLog) Panic(msg string) + func (l *CsmLog) Panicf(format string, args ...interface{}) + func (l *CsmLog) SetFormat(format string) + func (l *CsmLog) SetLevel(level Level) + func (l *CsmLog) SetOutput(output io.Writer) + func (l *CsmLog) Trace(msg string) + func (l *CsmLog) Tracef(format string, args ...interface{}) + func (l *CsmLog) TrackDuration(start time.Time) *CsmLog + func (l *CsmLog) Warn(msg string) + func (l *CsmLog) Warnf(format string, args ...interface{}) + func (l *CsmLog) WithComponent(name string) *CsmLog + func (l *CsmLog) WithContext(ctx context.Context) *CsmLog + func (l *CsmLog) WithFields(fields Fields) *CsmLog + func (l *CsmLog) WithOperation(name string) *CsmLog + type Fields = map[string]interface + func ExtractFieldsFromContext(ctx context.Context) Fields + type Level uint32 + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const TraceLevel + const WarnLevel + func GetLevel() Level + func ParseLevel(level string) (Level, error) + func (level Level) String() string