Documentation ¶
Rendered for js/wasm
Overview ¶
Package power is a more powered logger but with fmt (fat)
Index ¶
- type Logger
- func (l Logger) Debug(msg string)
- func (l Logger) Debugf(format string, args ...interface{})
- func (l Logger) Error(msg string)
- func (l Logger) Errorf(format string, args ...interface{})
- func (l Logger) Info(msg string)
- func (l Logger) Infof(format string, args ...interface{})
- func (l Logger) Trace()
- func (l Logger) Warn(msg string)
- func (l Logger) Warnf(format string, args ...interface{})
- func (l Logger) WithErr(key string, err error) Logger
- func (l Logger) WithError(err error) Logger
- func (l Logger) WithField(key string, value interface{}) Logger
- func (l Logger) WithFields(fields map[string]interface{}) Logger
- func (l Logger) WithValue(key string, value interface{}) Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger fat wrapper of simple logger
func (Logger) WithField ¶
WithField tries to convert value to JS type and if it not passible write it like a WithValue
func (Logger) WithFields ¶
WithFields appends fields set to list use only base types: nil, bool, integers, floats, string
Click to show internal directories.
Click to hide internal directories.