Versions in this module Expand all Collapse all v1 v1.0.2 Nov 27, 2021 Changes in this version + const D_LOG_FLAGS + var LevelNames = [...]string + type Log struct + func GetLog() *Log + func NewLog(w io.Writer, prefix string, flag int) *Log + func NewStdLog(opts ...Option) *Log + func NewSysLog(opts ...Option) *Log + func NewXLog(w io.Writer, opts ...Option) *Log + func (t *Log) Close() + func (t *Log) Debug(format string, v ...interface{}) + func (t *Log) Error(format string, v ...interface{}) + func (t *Log) Fatal(format string, v ...interface{}) + func (t *Log) Info(format string, v ...interface{}) + func (t *Log) Panic(format string, v ...interface{}) + func (t *Log) SetLevel(level string) + func (t *Log) Warning(format string, v ...interface{}) + type LogLevel int + const DEBUG + const ERROR + const FATAL + const INFO + const PANIC + const WARNING + type Option func(*Options) + func Level(v LogLevel) Option + func Name(v string) Option + type Options struct + Level LogLevel + Name string