Documentation ¶
Index ¶
- Constants
- Variables
- func Cost(arg ...interface{}) func(...func() []interface{})
- func Debug(arg ...interface{})
- func Error(arg ...interface{})
- func FileLine(h interface{}, n int) string
- func FmtDuration(d time.Duration) string
- func FmtInt(i int) string
- func FmtSize(i uint64) string
- func FmtTime(t time.Time) string
- func Info(arg ...interface{})
- func Init(conf *conf.Conf)
- func Now() time.Time
- func NowStamp() int64
- func Show(arg ...interface{})
- func Warn(arg ...interface{})
- type Log
- func (log *Log) Cost(arg ...interface{}) func(...func() []interface{})
- func (log *Log) Debug(arg ...interface{}) bool
- func (log *Log) Debugf(str string, arg ...interface{}) bool
- func (log *Log) Error(arg ...interface{})
- func (log *Log) Errorf(str string, arg ...interface{})
- func (log *Log) Info(arg ...interface{})
- func (log *Log) Infof(str string, arg ...interface{})
- func (log *Log) Show(arg ...interface{})
- func (log *Log) Warn(arg ...interface{})
- func (log *Log) Warnf(str string, arg ...interface{})
Constants ¶
View Source
const ( INFO = "info" WARN = "warn" ERROR = "error" DEBUG = "debug" COST = "cost" SHOW = "show" STACK = 3 )
Variables ¶
View Source
var LogDisable = true
Functions ¶
func Cost ¶
func Cost(arg ...interface{}) func(...func() []interface{})
func Debug ¶
func Debug(arg ...interface{})
func Error ¶
func Error(arg ...interface{})
func Info ¶
func Info(arg ...interface{})
func Show ¶
func Show(arg ...interface{})
func Warn ¶
func Warn(arg ...interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.