Documentation
¶
Index ¶
- Constants
- Variables
- func StrToConst(lvl string) (byte, error)
- func WithFileName(l *Log) error
- func WithFilePath(l *Log) error
- type CfgFunc
- type Log
- func (l *Log) Debug(params ...interface{})
- func (l *Log) Debugf(fmtstr string, params ...interface{})
- func (l *Log) Err(params ...interface{})
- func (l *Log) Errf(fmtstr string, params ...interface{})
- func (l *Log) Fatal(params ...interface{})
- func (l *Log) Fatalf(fmtstr string, params ...interface{})
- func (l *Log) Info(params ...interface{})
- func (l *Log) Infof(fmtstr string, params ...interface{})
- func (l *Log) Trace(params ...interface{})
- func (l *Log) Tracef(fmtstr string, params ...interface{})
- func (l *Log) Warn(params ...interface{})
- func (l *Log) Warnf(fmtstr string, params ...interface{})
Constants ¶
View Source
const ( LOGFATAL byte = 1 LOGERR byte = 2 LOGWARN byte = 3 LOGINFO byte = 4 LOGDEBUG byte = 5 LOGTRACE byte = 6 )
View Source
const ( FILENAME_MODE_NONE byte = 0 FILENAME_MODE_FILEONLY byte = 1 FILENAME_MODE_FILEPATH byte = 2 )
Variables ¶
Functions ¶
func StrToConst ¶
func WithFileName ¶
func WithFilePath ¶
Types ¶
type CfgFunc ¶
func WithWriter ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) Fatal ¶
func (l *Log) Fatal(params ...interface{})
Fatal prints the fatal log and panics
Click to show internal directories.
Click to hide internal directories.