package waLog
import "github.com/testovoleg/whatsmeow/util/log"
Package waLog contains a simple logger interface used by the other whatsmeow packages.
Index ¶
Types ¶
type Logger ¶
type Logger interface { Warnf(msg string, args ...interface{}) Errorf(msg string, args ...interface{}) Infof(msg string, args ...interface{}) Debugf(msg string, args ...interface{}) Sub(module string) Logger }
Logger is a simple logger interface that can have subloggers for specific areas.
var Noop Logger = &noopLogger{}
Noop is a no-op Logger implementation that silently drops everything.
func Stdout ¶
Stdout is a simple Logger implementation that outputs to stdout. The module name given is included in log lines.
minLevel specifies the minimum log level to output. An empty string will output all logs.
If color is true, then info, warn and error logs will be colored cyan, yellow and red respectively using ANSI color escape codes.
Source Files ¶
- Version
- v0.0.0-20230731113359-3e87cabb9327 (latest)
- Published
- Jul 31, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 month ago –
Tools for package owners.