Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2023 Changes in this version + const DEBUG + const ERROR + const FATAL + const INFO + const WARN + type AppLogFunc func(lvl Level, f string, args ...interface{}) + type FileWriter struct + func NewFileWriter(logDir string, bufferSize, flushInterval int, maxSize uint64) *FileWriter + func (fw *FileWriter) Sync() error + func (fw *FileWriter) Write(p []byte) (n int, err error) + type Level int + func ParseLogLevel(levelStr string) (Level, error) + func (l *Level) Get() interface{} + func (l *Level) Set(s string) error + func (l Level) String() string + type Logger interface + Output func(callerSkip int, s string) error + SetOutput func(w io.Writer) + type LoggingSetting struct + Dir string + Level int + Prefix string + WriterOption Option + type NilLogger struct + func (l *NilLogger) SetOutput(writer io.Writer) + func (l NilLogger) Output(callerSkip int, s string) error + type Option func(spoor *Spoor) + func WithConsoleWriter(writer io.Writer) Option + func WithFileWriter(writer *FileWriter) Option + type Spoor struct + func NewSpoor(cfgLevel Level, prefix string, flag int, opts ...Option) *Spoor + func (l *Spoor) CheckLevel(level Level) bool