update log add date utils

This commit is contained in:
2017-07-11 17:33:03 +08:00
parent a5e6669573
commit 1c7c9a54c8
3 changed files with 37 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ type (
var (
mylog *logrus.Logger
fn bool
fn bool //whether show file line
)
func init() {
@@ -36,6 +36,7 @@ func init() {
fn = true
}
// whether show file line
func SetFn(val bool) {
fn = val
}