 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package logger TODO
Index ¶
- Variables
- func FormatTime(t time.Time) string
- func LeftJustified(s string, v byte, size int) string
- func Log(o Output, r *Record) error
- func RightJustified(s string, v byte, size int) string
- type BuildLabelFunc
- type Level
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Debug(msg string, kv ...any)
- func (l *Logger) Deregister()
- func (l *Logger) Error(err error, msg string, kv ...any)
- func (l *Logger) FIXME(err error, msg string)
- func (l *Logger) Fatal(err error, msg string, kv ...any)
- func (l *Logger) ID() string
- func (l *Logger) Info(msg string, kv ...any)
- func (l *Logger) Label() string
- func (l *Logger) Level() string
- func (l *Logger) Name() string
- func (l *Logger) NewLogger(id, name string, opts ...Option) *Logger
- func (l *Logger) NewStdLogger(level, prefix string, flag int) *log.Logger
- func (l *Logger) Notice(msg string, kv ...any)
- func (l *Logger) Output() Output
- func (l *Logger) Register() error
- func (l *Logger) SetLevel(level string) Level
- func (l *Logger) Trace(msg string, kv ...any)
- func (l *Logger) Warning(err error, msg string, kv ...any)
 
- type LoggerInfo
- type OnCloseFunc
- type Option
- type Output
- type Record
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var BufPool = buffer.NewPool(_bufSize)
    Functions ¶
func FormatTime ¶
Types ¶
type BuildLabelFunc ¶
type Level ¶
type Level uint64
const ( LevelTrace Level LevelDebug LevelInfo LevelNotice LevelWarning LevelError LevelFatal )
func StringToLevel ¶
type Logger ¶
type Logger struct {
	// contains filtered or unexported fields
}
    func (*Logger) Deregister ¶
func (l *Logger) Deregister()
func (*Logger) NewStdLogger ¶
type LoggerInfo ¶
func List ¶
func List() []*LoggerInfo
type OnCloseFunc ¶ added in v0.4.0
type Option ¶
type Option func(*Logger)
func WithBuildLabelFunc ¶
func WithBuildLabelFunc(fn BuildLabelFunc) Option
func WithOnCloseFunc ¶ added in v0.4.0
func WithOnCloseFunc(fn OnCloseFunc) Option
func WithOutput ¶
 Click to show internal directories. 
   Click to hide internal directories.