Versions in this module Expand all Collapse all v1 v1.0.2 Mar 10, 2018 Changes in this version + const FILELOG_ARCHIVE_REGEX + const FILELOG_DEFAULT_COMPRESSION_METHOD + const FORMAT_ABBREV + const FORMAT_DEFAULT + const FORMAT_MILLIS + const FORMAT_SHORT + const L4G_BUILD + const L4G_MAJOR + const L4G_MINOR + const L4G_VERSION + const SuffixDateFormat + var LogBufferLength = 32 + func AddFilter(name string, lvl Level, writer LogWriter) + func Close() + func Crash(args ...interface{}) + func Crashf(format string, args ...interface{}) + func Critical(arg0 interface{}, args ...interface{}) error + func Debug(arg0 interface{}, args ...interface{}) + func Error(arg0 interface{}, args ...interface{}) error + func Exit(args ...interface{}) + func Exitf(format string, args ...interface{}) + func Fine(arg0 interface{}, args ...interface{}) + func Finest(arg0 interface{}, args ...interface{}) + func FormatLogRecord(format string, rec *LogRecord) string + func Info(arg0 interface{}, args ...interface{}) + func LoadConfiguration(filename string) + func Log(lvl Level, source, message string) + func Logc(lvl Level, closure func() string) + func Logf(lvl Level, format string, args ...interface{}) + func Stderr(args ...interface{}) + func Stderrf(format string, args ...interface{}) + func Stdout(args ...interface{}) + func Stdoutf(format string, args ...interface{}) + func Trace(arg0 interface{}, args ...interface{}) + func Warn(arg0 interface{}, args ...interface{}) error + type CompressionMethod string + const COMPRESSION_GZIP + const COMPRESSION_ZIP + type ConsoleLogWriter interface + Close func() + LogWrite func(rec *LogRecord) + func NewConsoleLogWriter() ConsoleLogWriter + type ConsoleLogWriterImp struct + func (w ConsoleLogWriterImp) Close() + func (w ConsoleLogWriterImp) LogWrite(rec *LogRecord) + type FileLogWriter struct + func NewFileLogWriter(fname string, rotate bool, compress bool) *FileLogWriter + func NewXMLLogWriter(fname string, rotate bool) *FileLogWriter + func (w *FileLogWriter) Close() + func (w *FileLogWriter) LogWrite(rec *LogRecord) + func (w *FileLogWriter) Rotate() + func (w *FileLogWriter) SetCompressionMethod(compressionMethod CompressionMethod) *FileLogWriter + func (w *FileLogWriter) SetFormat(format string) *FileLogWriter + func (w *FileLogWriter) SetHeadFoot(head, foot string) *FileLogWriter + func (w *FileLogWriter) SetMaxArchiveFiles(filesToKeep int) *FileLogWriter + func (w *FileLogWriter) SetRotate(rotate bool) *FileLogWriter + func (w *FileLogWriter) SetRotateDaily(daily bool) *FileLogWriter + func (w *FileLogWriter) SetRotateDateSuffix(dateSuffix bool) *FileLogWriter + func (w *FileLogWriter) SetRotateLines(maxlines int) *FileLogWriter + func (w *FileLogWriter) SetRotateOnStartup(rotateOnStartup bool) *FileLogWriter + func (w *FileLogWriter) SetRotateSize(maxsize int) *FileLogWriter + type Filter struct + Level Level + type FormatLogWriter chan *LogRecord + func NewFormatLogWriter(out io.Writer, format string) FormatLogWriter + func (w FormatLogWriter) Close() + func (w FormatLogWriter) LogWrite(rec *LogRecord) + type Level int + const CRITICAL + const DEBUG + const ERROR + const FINE + const FINEST + const INFO + const TRACE + const WARNING + func (l Level) String() string + type LogRecord struct + Created time.Time + Level Level + Message string + Source string + type LogWriter interface + Close func() + LogWrite func(rec *LogRecord) + type Logger map[string]*Filter + var Global Logger + func NewConsoleLogger(lvl Level) Logger + func NewDefaultLogger(lvl Level) Logger + func NewLogger() Logger + func (log Logger) AddFilter(name string, lvl Level, writer LogWriter) Logger + func (log Logger) Close() + func (log Logger) Critical(arg0 interface{}, args ...interface{}) error + func (log Logger) Debug(arg0 interface{}, args ...interface{}) + func (log Logger) Error(arg0 interface{}, args ...interface{}) error + func (log Logger) Fine(arg0 interface{}, args ...interface{}) + func (log Logger) Finest(arg0 interface{}, args ...interface{}) + func (log Logger) Info(arg0 interface{}, args ...interface{}) + func (log Logger) LoadConfiguration(filename string) + func (log Logger) Log(lvl Level, source, message string) + func (log Logger) Logc(lvl Level, closure func() string) + func (log Logger) Logf(lvl Level, format string, args ...interface{}) + func (log Logger) Trace(arg0 interface{}, args ...interface{}) + func (log Logger) Warn(arg0 interface{}, args ...interface{}) error + type SocketLogWriter chan *LogRecord + func NewSocketLogWriter(proto, hostport string) SocketLogWriter + func (w SocketLogWriter) Close() + func (w SocketLogWriter) LogWrite(rec *LogRecord)