Documentation
¶
Index ¶
- Constants
- type Levels
- type Log
- func (l *Log) Close() error
- func (l *Log) Error(p ...interface{})
- func (l *Log) Fatal(p ...interface{})
- func (l *Log) GzipClose() error
- func (l *Log) Info(p ...interface{})
- func (l *Log) Open(path string) (*Log, error)
- func (l *Log) Panic(p ...interface{})
- func (l *Log) Printf(format string, v ...interface{})
- func (l *Log) Size() int64
- func (l *Log) Trace(p ...interface{})
- func (l *Log) Warning(p ...interface{})
- func (l *Log) Write(b []byte) (int, error)
- type LogLevel
- type Logger
Constants ¶
View Source
const ( TRACE = "TRACE" INFO = "INFO" WARN = "WARNING" ERR = "ERROR" FATAL = "FATAL" PANIC = "PANIC" )
Loglevel types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Levels ¶
Levels contain each log level
func DefaultLevels ¶
DefaultLevels initializes and returns the available log levels
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is used to log information to one or several files
type LogLevel ¶
type LogLevel struct {
// contains filtered or unexported fields
}
LogLevel contains info about a log level
type Logger ¶
type Logger interface { Open(string) (*Log, error) Trace(...interface{}) Info(...interface{}) Warning(...interface{}) Error(...interface{}) Fatal(...interface{}) Panic(...interface{}) Write([]byte) (int, error) Printf(format string, v ...interface{}) Size() int64 GzipClose() error Close() error }
Logger is used for all logging
Click to show internal directories.
Click to hide internal directories.