Documentation ¶
Index ¶
- func LevelText(level Level) string
- type Console
- func (c *Console) Close()
- func (c *Console) Print(l Level, scope string, caller string, stack []string, messages []interface{})
- func (c *Console) Printf(l Level, scope string, caller string, stack []string, format string, ...)
- func (c *Console) Prints(l Level, scope string, caller string, stack []string, message string)
- func (c *Console) Printv(l Level, scope string, caller string, stack []string, message string, ...)
- type ConsoleConfig
- type Core
- type EnablerFunc
- type Level
- type Logger
- func (l *Logger) Debug(messages ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugv(message string, keysValues ...interface{})
- func (l *Logger) Error(messages ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorv(message string, keysValues ...interface{})
- func (l *Logger) Fatal(messages ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalln(messages ...interface{})
- func (l *Logger) Fatalv(message string, keysValues ...interface{})
- func (l *Logger) GetLogger(scope string) *Logger
- func (l *Logger) Info(messages ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infov(message string, keysValues ...interface{})
- func (l *Logger) Panic(messages ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Panicln(messages ...interface{})
- func (l *Logger) Panicv(message string, keysValues ...interface{})
- func (l *Logger) Print(messages ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Println(messages ...interface{})
- func (l *Logger) Skip(skip int) *Logger
- func (l *Logger) Trace(messages ...interface{})
- func (l *Logger) Tracef(format string, args ...interface{})
- func (l *Logger) Tracev(message string, keysValues ...interface{})
- func (l *Logger) Warn(messages ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warnv(message string, keysValues ...interface{})
- type WriteSync
- type Writer
- func (w *Writer) Config(scope map[string]string, level *string, stack *string) error
- func (w *Writer) Enabler(fn EnablerFunc) *Writer
- func (w *Writer) EnablerByLevel(l Level) *Writer
- func (w *Writer) EnablerByScope(m map[string]Level, def Level) *Writer
- func (w *Writer) StackByLevel(l Level) *Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
type ConsoleConfig ¶ added in v1.12.0
type Core ¶ added in v1.11.0
type Core struct {
// contains filtered or unexported fields
}
func (*Core) RedirectStdLog ¶ added in v1.11.0
RedirectStdLog std log to this to Info Level It returns a function to restore the original prefix and flags and reset the standard library's output to os.Stderr.
func (*Core) RedirectStdLogAt ¶ added in v1.11.0
RedirectStdLogAt std log to this at log level It returns a function to restore the original prefix and flags and reset the standard library's output to os.Stderr.
type EnablerFunc ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func ConsoleWriter ¶
func ConsoleWriterWithConfig ¶ added in v1.12.0
func ConsoleWriterWithConfig(c *ConsoleConfig) (*Writer, error)
func ConsoleWriterWithOptions ¶
func ConsoleWriterWithOptions(caller bool, enableColor bool, scopeAlign int, callerAlign int) *Writer
use default value of scopeAlign & callerAlign with set they with -1 and 0 to disable
func (*Writer) Enabler ¶ added in v1.12.0
func (w *Writer) Enabler(fn EnablerFunc) *Writer
func (*Writer) EnablerByLevel ¶ added in v1.12.0
func (*Writer) EnablerByScope ¶ added in v1.12.0
func (*Writer) StackByLevel ¶ added in v1.12.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.