Documentation
¶
Overview ¶
Package olog provides a wrapper around the standard log package. It is used for all logging in the project. By default, the output is discarded.
Index ¶
- func Default() *log.Logger
- func Fatal(v ...any)
- func Fatalf(format string, v ...any)
- func Fatalln(v ...any)
- func Flags() int
- func Output(calldepth int, s string) error
- func Panic(v ...any)
- func Panicf(format string, v ...any)
- func Panicln(v ...any)
- func Prefix() string
- func Print(v ...any)
- func Printf(format string, v ...any)
- func Println(v ...any)
- func SetDefault(l *log.Logger)
- func SetFlags(flag int)
- func SetOutput(w io.Writer)
- func SetPrefix(prefix string)
- func Writer() io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Default ¶
Default returns the default logger. If no logger has been set, it returns a no-op logger that discards all log messages.
func SetDefault ¶
SetDefault sets the default logger to the provided logger. When nil is passed, the default logger is set to a no-op logger that discards all log messages.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.