Documentation ¶
Index ¶
Constants ¶
View Source
const ( LOG_DIR = "./log" NULL_AUTO_CLEAR_HOURS = 0 AUTO_CLEAR_HOURS = 1 )
Variables ¶
View Source
var ( ErrLogPrefixNil = errors.New("log Prefix is nil") ErrLogTypeIllegal = errors.New("log Type Illegal") )
Functions ¶
func NewDefaultLogger ¶
NewDefaultLogger function returns a `Logger` object. We need put in logger config.
func NewSingleLogger ¶
Types ¶
type Logger ¶
type Logger interface { DebugfCtx(ctx context.Context, f string, args ...interface{}) InfofCtx(ctx context.Context, f string, args ...interface{}) WarnfCtx(ctx context.Context, f string, args ...interface{}) ErrorfCtx(ctx context.Context, f string, args ...interface{}) Printf(f string, args ...interface{}) Debugf(f string, args ...interface{}) Errorf(f string, args ...interface{}) Infof(f string, args ...interface{}) Warnf(f string, args ...interface{}) Debug(msg string) Error(msg string) Info(msg string) Warn(msg string) }
var Elog Logger
Click to show internal directories.
Click to hide internal directories.