package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jul 4, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package logging provides a Logger to write logs.
View Source
const (
LevelDebug = 0
LevelInfo = 1
LevelWarn = 2
LevelError = 3
)
Logging levels.
Logger formats and writes logs to stderr.
New creates a Logger with the given logging level.
func (l *Logger) Debug(format string, operands ...interface{})
Debug writes a formatted debug log.
func (l *Logger) Error(format string, operands ...interface{})
Error writes a formatted error log.
func (l *Logger) Info(format string, operands ...interface{})
Info writes a formatted info log.
Level returns the logging level.
func (l *Logger) Warn(format string, operands ...interface{})
Warn writes a formatted warn log.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.