From 333d680f38c81fe2e8649c9282a951a85f85e90b Mon Sep 17 00:00:00 2001 From: siddontang Date: Fri, 28 Mar 2014 14:11:15 +0800 Subject: [PATCH] add flag --- log/log.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/log/log.go b/log/log.go index 4437746..80af33f 100644 --- a/log/log.go +++ b/log/log.go @@ -23,6 +23,15 @@ type Logger struct { handler Handler } +const ( + Ldate = log.Ldate + Ltime = log.Ltime + Lmicroseconds = log.Lmicroseconds + Llongfile = log.Llongfile + Lshortfile = log.Lshortfile + LstdFlags = Ldate | Ltime +) + func New(handler Handler, flag int) *Logger { var l = new(Logger) l.logger = log.New(handler, "", flag) //log.LstdFlags|log.Lshortfile)