Documentation ¶
Index ¶
- Constants
- func Cost(arg ...Any) func(...func() []Any)
- func CostTime(cb func(time.Duration)) func()
- func CreateFile(p string) (io.WriteCloser, string, error)
- func Debug(arg ...Any)
- func Disable(status bool)
- func Error(arg ...Any)
- func FileLine(h Any, arg ...string) string
- func FileLines(h Any) string
- func FileLinesFuck(h Any) string
- func FmtDuration(d time.Duration) string
- func FmtInt(i int) string
- func FmtSize(i uint64) string
- func FmtTime(t time.Time) string
- func Format(str string, arg ...Any) string
- func Info(arg ...Any)
- func Infof(str string, arg ...Any)
- func Init(conf *conf.Conf, file file.File)
- func Logger(key string) func(...Any)
- func Now() time.Time
- func NowStamp() int64
- func PrintStack()
- func Println(arg ...Any)
- func ReadFile(p string) string
- func Show(arg ...Any)
- func Stack(skip, deep int) string
- func Warn(arg ...Any)
- type Any
- type Log
- func (log *Log) Cost(arg ...Any) func(...func() []Any)
- func (log *Log) Debug(arg ...Any) bool
- func (log *Log) Debugf(str string, arg ...Any) bool
- func (log *Log) Error(arg ...Any)
- func (log *Log) Errorf(str string, arg ...Any)
- func (log *Log) Info(arg ...Any)
- func (log *Log) Infof(str string, arg ...Any)
- func (log *Log) Logger(key string) func(...Any)
- func (log *Log) Show(arg ...Any)
- func (log *Log) Warn(arg ...Any)
- func (log *Log) Warnf(str string, arg ...Any)
- type Meta
Constants ¶
View Source
const ( INFO = "info" WARN = "warn" ERROR = "error" DEBUG = "debug" SHOW = "show" COST = "cost" )
View Source
const ( PREFIX = "prefix" SUFFIX = "suffix" FILELINE = "fileline" TRACEID = "id" )
View Source
const LOG = "log"
Variables ¶
This section is empty.
Functions ¶
func PrintStack ¶ added in v0.6.4
func PrintStack()
Types ¶
type Any ¶ added in v0.6.4
type Any = interface{}
type Log ¶
Click to show internal directories.
Click to hide internal directories.