Documentation ¶
Index ¶
- Constants
- type TLogGo
- func (l *TLogGo) Debug(v ...interface{})
- func (l *TLogGo) Debugf(format string, v ...interface{})
- func (l *TLogGo) Debugln(v ...interface{})
- func (l *TLogGo) Error(v ...interface{})
- func (l *TLogGo) Errorf(format string, v ...interface{})
- func (l *TLogGo) Errorln(v ...interface{})
- func (l *TLogGo) Fatal(v ...interface{})
- func (l *TLogGo) Fatalf(format string, v ...interface{})
- func (l *TLogGo) Fatalln(v ...interface{})
- func (l *TLogGo) Flags() int
- func (l *TLogGo) Info(v ...interface{})
- func (l *TLogGo) Infof(format string, v ...interface{})
- func (l *TLogGo) Infoln(v ...interface{})
- func (l *TLogGo) Prefix() string
- func (l *TLogGo) Print(v ...interface{})
- func (l *TLogGo) Printf(format string, v ...interface{})
- func (l *TLogGo) Println(v ...interface{})
- func (l *TLogGo) SetFlags(flag int)
- func (self *TLogGo) SetLogFileMaxSize(v int)
- func (self *TLogGo) SetLogLevel(v int)
- func (self *TLogGo) SetLogOnConsle(v bool)
- func (l *TLogGo) SetPrefix(prefix string)
- func (l *TLogGo) Warn(v ...interface{})
- func (l *TLogGo) Warnf(format string, v ...interface{})
- func (l *TLogGo) Warnln(v ...interface{})
Constants ¶
View Source
const ( TLevelOFF = iota TLevelFATAL TLevelERROR TLevelWARN TLevelINFO TLevelDEBUG TLevelALL )
View Source
const ( Ldate = 1 << iota // the date in the local time zone: 2009/01/23 Ltime // the time in the local time zone: 01:23:23 Lmicroseconds // microsecond resolution: 01:23:23.123123. assumes Ltime. Llongfile // full file name and line number: /a/b/c/d.go:23 Lshortfile // final file name element and line number: d.go:23. overrides Llongfile LUTC // if Ldate or Ltime is set, use UTC rather than the local time zone LstdFlags = Ldate | Ltime // initial values for the standard logger )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLogGo ¶
type TLogGo struct {
// contains filtered or unexported fields
}
func (*TLogGo) Fatal ¶
func (l *TLogGo) Fatal(v ...interface{})
Fatal is equivalent to l.Print() followed by a call to os.Exit(1).
func (*TLogGo) SetLogLevel ¶
func (*TLogGo) SetLogOnConsle ¶
Click to show internal directories.
Click to hide internal directories.