Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(s string)
- func Debugf(f string, v ...interface{})
- func Error(s string)
- func Errorf(f string, v ...interface{})
- func Fatal(s string)
- func Fatalf(format string, v ...interface{})
- func Info(s string)
- func Infof(f string, v ...interface{})
- func NewPrint(flagCat uint64) func(string)
- func NewPrintf(flagCat uint64) func(string, ...interface{})
- func NewPrintln(flagCat uint64) func(...interface{})
- func NewWriter(flag uint64, prefix string) io.Writer
- func Panic(s string)
- func Panicf(format string, v ...interface{})
- func Print(s string)
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetFilter(flagCat uint64)
- func SetFormat(flagFmt ...FormatFlag)
- func SetOutput(w io.Writer)
- func SetPrefix(prefix string)
- func Warn(s string)
- func Warnf(f string, v ...interface{})
- type Dlogger
- func (l *Dlogger) Debug(s string)
- func (l *Dlogger) Debugf(f string, v ...interface{})
- func (l *Dlogger) Error(s string)
- func (l *Dlogger) Errorf(f string, v ...interface{})
- func (l *Dlogger) Fatal(s string)
- func (l *Dlogger) Fatalf(format string, v ...interface{})
- func (l *Dlogger) Info(s string)
- func (l *Dlogger) Infof(f string, v ...interface{})
- func (l *Dlogger) NewPrint(flagCat uint64) func(string)
- func (l *Dlogger) NewPrintf(flagCat uint64) func(string, ...interface{})
- func (l *Dlogger) NewPrintln(flagCat uint64) func(...interface{})
- func (l *Dlogger) NewWriter(flag uint64, prefix string) io.Writer
- func (l *Dlogger) Output(flagCat uint64, s string) error
- func (l *Dlogger) Outputb(flagCat uint64, b []byte) error
- func (l *Dlogger) Panic(s string)
- func (l *Dlogger) Panicf(format string, v ...interface{})
- func (l *Dlogger) Prefix() string
- func (l *Dlogger) Print(flagCat uint64, s string)
- func (l *Dlogger) Printf(flagCat uint64, format string, v ...interface{})
- func (l *Dlogger) Println(flagCat uint64, v ...interface{})
- func (l *Dlogger) SetAltOutput(fnAltOut func(uint64, string) error)
- func (l *Dlogger) SetFilter(category ...uint64)
- func (l *Dlogger) SetFormat(flagFmt ...FormatFlag)
- func (l *Dlogger) SetOutput(w io.Writer)
- func (l *Dlogger) SetPrefix(prefix string)
- func (l *Dlogger) Warn(s string)
- func (l *Dlogger) Warnf(f string, v ...interface{})
- func (l *Dlogger) Writer() io.Writer
- type FormatFlag
- type LogWriter
- type LogWriterPrefix
- type Opt
Constants ¶
View Source
const ( // FLAG FORMAT F_ALL FormatFlag = ^FormatFlag(0) F_NONE FormatFlag = 0 F_DATE FormatFlag = 1 << iota F_TIME F_MICROSECONDS F_UTC F_PREFIX // FLAG CATEGORY C_ALL uint64 = ^uint64(0) C_NONE uint64 = 0 C_DEBUG uint64 = 1 << iota C_INFO C_WARN C_ERROR C_FATAL C_PANIC C_SYSTEM C_IO C_NET C_SERVICE C_REQ // (service) SEND the request C_RES // (service) RECEIVEd request and responsed C_TIMED C_API C_BACK C_FRONT C_GLOBAL )
Variables ¶
View Source
var Discard io.Writer = devNull(0)
Functions ¶
func NewPrintln ¶
func NewPrintln(flagCat uint64) func(...interface{})
func SetFormat ¶
func SetFormat(flagFmt ...FormatFlag)
Types ¶
type Dlogger ¶
type Dlogger struct {
// contains filtered or unexported fields
}
func (*Dlogger) NewPrint ¶
==================================================================== PRINT FUNC
func (*Dlogger) NewPrintln ¶
func (*Dlogger) Prefix ¶
==================================================================== PREFIX
func (*Dlogger) SetFormat ¶
func (l *Dlogger) SetFormat(flagFmt ...FormatFlag)
==================================================================== FLAG
type FormatFlag ¶
type FormatFlag int
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
==================================================================== WRITER
type LogWriterPrefix ¶
type LogWriterPrefix struct {
// contains filtered or unexported fields
}
==================================================================== WRITER: PREFIX
Click to show internal directories.
Click to hide internal directories.