Documentation ¶
Overview ¶
Package logger implements async log web api messages
Index ¶
- func Debug(level int, format string, a ...interface{})
- func Error(message string)
- func Errorf(format string, a ...interface{})
- func Info(message string)
- func Infof(format string, a ...interface{})
- func Initialize()
- func Perf(message string)
- type Logger
- func (l *Logger) Critical(log string, message string)
- func (l *Logger) Debug(level int, format string, a ...interface{})
- func (l *Logger) Error(message string)
- func (l *Logger) Handle()
- func (l *Logger) Info(message string)
- func (l *Logger) Log(log string, lvl l4g.Level, message string)
- func (l *Logger) Perf(message string)
- func (l *Logger) Warning(log string, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(message string)
Error is a short cut function that uses package initialized logger and error log
func Info ¶
func Info(message string)
Info is a short cut function that uses package initialized logger
func Initialize ¶
func Initialize()
Initialialize sets up package var Log for use in Info(), Error(), and Perf()
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
var Log *Logger
func New ¶
func New() *Logger
New configures and returns a new logger. It also kicks off the goroutine that performs the log writing as messages queue.
Click to show internal directories.
Click to hide internal directories.