Documentation
¶
Index ¶
- Constants
- func AsyncWriter(ch chan string, writer io.Writer)
- func Shutdown()
- type Console
- type FileAppender
- type ILogger
- type LogHandler
- type LogLevel
- type LogMaster
- type LogWriter
- type Logger
- func (this *Logger) CallerAt(depth int) ILogger
- func (this *Logger) Debug(a ...interface{})
- func (this *Logger) Debugf(format string, what ...interface{})
- func (this *Logger) Error(a ...interface{})
- func (this *Logger) Errorf(format string, what ...interface{})
- func (this *Logger) Fatal(a ...interface{})
- func (this *Logger) Fatalf(format string, what ...interface{})
- func (this *Logger) Info(a ...interface{})
- func (this *Logger) Infof(format string, what ...interface{})
- func (this *Logger) IsActive(level LogLevel) bool
- func (this *Logger) Level() LogLevel
- func (this *Logger) Namespace() string
- func (this *Logger) SetCallerAt(depth int) *Logger
- func (this *Logger) Trace(a ...interface{})
- func (this *Logger) Tracef(format string, what ...interface{})
- func (this *Logger) Warn(a ...interface{})
- func (this *Logger) Warnf(format string, what ...interface{})
- type NullAppender
- type RollingFileAppender
- type RootAppender
- type Worker
- type Wrap
- func (this Wrap) CallerAt(depth int) ILogger
- func (this Wrap) Debugf(format string, what ...interface{})
- func (this Wrap) Errorf(format string, what ...interface{})
- func (this Wrap) Fatalf(format string, what ...interface{})
- func (this Wrap) Infof(format string, what ...interface{})
- func (this Wrap) IsActive(level LogLevel) bool
- func (this Wrap) Tracef(format string, what ...interface{})
- func (this Wrap) Warnf(format string, what ...interface{})
Constants ¶
View Source
const COUNTER_SEP = "-"
Variables ¶
This section is empty.
Functions ¶
func AsyncWriter ¶
Types ¶
type FileAppender ¶
type FileAppender struct { RootAppender // contains filtered or unexported fields }
Resets the log file as soon it goe over the maxsize. If maxsize == 0, then the log file will never reset.
func NewFileAppender ¶
func NewFileAppender(file string, size int64, resetOnStartup bool, async bool) *FileAppender
type LogHandler ¶
type NullAppender ¶
type NullAppender struct{}
func NewNullAppender ¶
func NewNullAppender() *NullAppender
func (*NullAppender) Discard ¶
func (this *NullAppender) Discard()
func (*NullAppender) Log ¶
func (this *NullAppender) Log(msgLevel LogLevel, msg string)
type RollingFileAppender ¶
type RollingFileAppender struct { RootAppender // contains filtered or unexported fields }
Roll the log file over a range of files once they go over the maxsize. If maxsize == 0, then the log file will never rool. If count == 0, then the backup log files will be infinite. The format of the backup log files will be <name>-<counter>.<extension>
func NewRollingFileAppender ¶
func NewRollingFileAppender(file string, size int64, count int, async bool) *RollingFileAppender
type RootAppender ¶
func (*RootAppender) Discard ¶
func (this *RootAppender) Discard()
func (*RootAppender) DrainChannel ¶
func (this *RootAppender) DrainChannel()
func (*RootAppender) Log ¶
func (this *RootAppender) Log(msgLevel LogLevel, msg string)
type Worker ¶
type Worker struct { Prefix string Level LogLevel Writers []LogWriter // contains filtered or unexported fields }
func (*Worker) SetTimeFormat ¶
available formats: Y,M,D,h,m,s,x. these format will be replaced by 'd' and used normaly with fmt.Sprintf
func (*Worker) ShowCaller ¶
Click to show internal directories.
Click to hide internal directories.