Documentation ¶
Index ¶
- type Component
- type Log
- func (log *Log) DebugInterface(v interface{}, template string, args ...interface{})
- func (log *Log) DisableStacktrace() *Log
- func (log *Log) IncreaseLevel(lvl zapcore.LevelEnabler) *Log
- func (log *Log) Named(name string) *Log
- func (log *Log) With(args ...interface{}) *Log
- func (log *Log) WithComponent(comp Component) *Log
- func (log *Log) WithPlatform(val string) *Log
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
*zap.SugaredLogger
}
func ProdLogger ¶
func ProdLogger() *Log
func (*Log) DebugInterface ¶
DebugInterface marshals the interface to indented JSON. Since this operation is mildly expensive it is only performed if the logger is at debug level.
A newline and marshaled JSON is automatically appended to the log message. It should not be included in the template.
func (*Log) DisableStacktrace ¶
DisableStacktrace disables writing of stack traces except at panic level.
func (*Log) IncreaseLevel ¶
func (log *Log) IncreaseLevel(lvl zapcore.LevelEnabler) *Log
IncreaseLevel increase the level of the logger. It has no effect if the passed in level tries to decrease the level of the logger.
func (*Log) WithComponent ¶
func (*Log) WithPlatform ¶
Click to show internal directories.
Click to hide internal directories.