Documentation ¶
Index ¶
- Variables
- func Test()
- type Log
- func (_log *Log) Close()
- func (_log *Log) Critical(data interface{}, args ...interface{})
- func (_log *Log) Debug(data interface{}, args ...interface{})
- func (_log *Log) Error(data interface{}, args ...interface{})
- func (_log *Log) Info(data interface{}, args ...interface{})
- func (_log *Log) Rotation(SizeMB int, Backup int)
- func (_log *Log) Statistics(state bool)
- func (_log *Log) Status() bool
- func (_log *Log) TimestampFormat(format string)
- func (_log *Log) Warn(data interface{}, args ...interface{})
- func (_log *Log) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Level = getLevel{
DEBUG: "DEBUG",
INFO: "INFO",
WARN: "WARN",
ERROR: "ERROR",
CRITICAL: "CRITICAL",
}
View Source
var TS = tsFormat{
ANSIC: "Mon Jan _2 15:04:05 2006",
UnixDate: "Mon Jan _2 15:04:05 MST 2006",
RubyDate: "Mon Jan 02 15:04:05 -0700 2006",
RFC822: "02 Jan 06 15:04 MST",
RFC822Z: "02 Jan 06 15:04 -0700",
RFC850: "Monday, 02-Jan-06 15:04:05 MST",
RFC1123: "Mon, 02 Jan 2006 15:04:05 MST",
RFC1123Z: "Mon, 02 Jan 2006 15:04:05 -0700",
RFC3339: "2006-01-02T15:04:05Z07:00",
RFC3339Nano: "2006-01-02T15:04:05.999999999Z07:00",
Kitchen: "3:04PM",
Special: "Jan 2, 2006 15:04:05.000000 MST",
Stamp: "Jan _2 15:04:05",
StampMilli: "Jan _2 15:04:05.000",
StampMicro: "Jan _2 15:04:05.000000",
StampNano: "Jan _2 15:04:05.000000000",
}
Functions ¶
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) Statistics ¶
func (*Log) TimestampFormat ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.