Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func DelTrace()
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func GenTraceId() string
- func GetBuffer() *bytes.Buffer
- func GetOutputWriter(filename string) io.Writer
- func GetOutputWriterHourly(filename string) io.Writer
- func GetTrace() []byte
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func PutBuffer(buf *bytes.Buffer)
- func SetTrace(traceId string)
- func SplitPackageName(f string) (string, string)
- func StartMsg()
- func Sync()
- func Trace(args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Entry
- type Format
- type FormatFull
- type Formatter
- type Level
- type Logger
- func AddOutput(writes ...io.Writer) *Logger
- func Caller(disable bool) *Logger
- func Clone() *Logger
- func New() *Logger
- func ParsingAndEscaping(disable bool) *Logger
- func SetCallerDepth(callerDepth int) *Logger
- func SetLevel(level Level) *Logger
- func SetOutput(writes ...io.Writer) *Logger
- func SetPrefixMsg(prefixMsg string) *Logger
- func SetSuffixMsg(suffixMsg string) *Logger
- func (p *Logger) AddOutput(writes ...io.Writer) *Logger
- func (p *Logger) Caller(disable bool) *Logger
- func (p *Logger) Clone() *Logger
- func (p *Logger) Debug(args ...interface{})
- func (p *Logger) Debugf(format string, args ...interface{})
- func (p *Logger) Error(args ...interface{})
- func (p *Logger) Errorf(format string, args ...interface{})
- func (p *Logger) Fatal(args ...interface{})
- func (p *Logger) Fatalf(format string, args ...interface{})
- func (p *Logger) Info(args ...interface{})
- func (p *Logger) Infof(format string, args ...interface{})
- func (p *Logger) Log(level Level, args ...interface{})
- func (p *Logger) Logf(level Level, format string, args ...interface{})
- func (p *Logger) Panic(args ...interface{})
- func (p *Logger) Panicf(format string, args ...interface{})
- func (p *Logger) ParsingAndEscaping(disable bool) *Logger
- func (p *Logger) Print(args ...interface{})
- func (p *Logger) Printf(format string, args ...interface{})
- func (p *Logger) SetCallerDepth(callerDepth int) *Logger
- func (p *Logger) SetLevel(level Level) *Logger
- func (p *Logger) SetOutput(writes ...io.Writer) *Logger
- func (p *Logger) SetPrefixMsg(prefixMsg string) *Logger
- func (p *Logger) SetSuffixMsg(suffixMsg string) *Logger
- func (p *Logger) StartMsg()
- func (p *Logger) Sync()
- func (p *Logger) Trace(args ...interface{})
- func (p *Logger) Tracef(format string, args ...interface{})
- func (p *Logger) Warn(args ...interface{})
- func (p *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenTraceId ¶
func GenTraceId() string
func GetOutputWriter ¶
func GetOutputWriterHourly ¶
func SplitPackageName ¶
Types ¶
type Entry ¶
type FormatFull ¶
type Formatter ¶
func (*Formatter) ParsingAndEscaping ¶
type Logger ¶
type Logger struct { Format Format PrefixMsg []byte SuffixMsg []byte // contains filtered or unexported fields }
func ParsingAndEscaping ¶
func SetCallerDepth ¶
func SetPrefixMsg ¶
func SetSuffixMsg ¶
func (*Logger) ParsingAndEscaping ¶
func (*Logger) SetCallerDepth ¶
func (*Logger) SetPrefixMsg ¶
func (*Logger) SetSuffixMsg ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.