Documentation ¶
Index ¶
- Variables
- func Debug(s ...any)
- func Debugf(format string, s ...any)
- func Error(s ...any)
- func Errorf(format string, s ...any)
- func Info(s ...any)
- func Infof(format string, s ...any)
- func Log(s ...any)
- func Logf(format string, s ...any)
- func Panic(s ...any)
- func Panicf(format string, s ...any)
- func Sprintf(format string, args ...any) string
- func Success(s ...any)
- func Successf(format string, s ...any)
- func Warn(s ...any)
- func Warnf(format string, s ...any)
- type Entry
- func (e *Entry) Debug(s ...any)
- func (e *Entry) Debugf(fotmat string, s ...any)
- func (e *Entry) Error(s ...any)
- func (e *Entry) Errorf(fotmat string, s ...any)
- func (e *Entry) Info(s ...any)
- func (e *Entry) Infof(fotmat string, s ...any)
- func (e *Entry) Log(s ...any)
- func (e *Entry) Logf(fotmat string, s ...any)
- func (e *Entry) Panic(s ...any)
- func (e *Entry) Panicf(fotmat string, s ...any)
- func (e *Entry) Success(s ...any)
- func (e *Entry) Successf(fotmat string, s ...any)
- func (e *Entry) Warn(s ...any)
- func (e *Entry) Warnf(fotmat string, s ...any)
- func (e *Entry) With(meta map[string]any) *Entry
- type Formater
- type JsonForamter
- type Level
- type Logger
- func (l *Logger) Debug(s ...any)
- func (l *Logger) Debugf(fotmat string, s ...any)
- func (l *Logger) EnableColor() bool
- func (l *Logger) Error(s ...any)
- func (l *Logger) Errorf(fotmat string, s ...any)
- func (l *Logger) Info(s ...any)
- func (l *Logger) Infof(fotmat string, s ...any)
- func (l *Logger) IsEnableLevel(level Level) bool
- func (l *Logger) Log(s ...any)
- func (l *Logger) Logf(fotmat string, s ...any)
- func (l *Logger) Panic(s ...any)
- func (l *Logger) Panicf(fotmat string, s ...any)
- func (l *Logger) Sprintf(format string, args ...any) string
- func (l *Logger) Success(s ...any)
- func (l *Logger) Successf(fotmat string, s ...any)
- func (l *Logger) Warn(s ...any)
- func (l *Logger) Warnf(fotmat string, s ...any)
- func (l *Logger) With(meta map[string]any) *Entry
- func (l *Logger) WithTag(tag string) *Entry
- type Meta
- type Record
- type TextForamter
Constants ¶
This section is empty.
Variables ¶
View Source
var Std = &Logger{ Stdout: os.Stdout, Stderr: os.Stderr, Level: LEVEL_ALL, Formater: &TextForamter{}, Caller: false, }
Functions ¶
Types ¶
type JsonForamter ¶
type JsonForamter struct{}
type Logger ¶
type Logger struct { Stdout io.Writer Stderr io.Writer Formater Formater // log meta fields Meta Meta // Caller tracing Caller bool // Caller tracing file is relative path RelativeFilePath bool ForceColor bool DisableColor bool DisableSprintfColor bool Tag string Level Level // contains filtered or unexported fields }
func (*Logger) EnableColor ¶ added in v0.2.0
func (*Logger) IsEnableLevel ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.