Skip to content

Commit

Permalink
Update logger.go
Browse files Browse the repository at this point in the history
  • Loading branch information
donnie4w committed Jun 6, 2024
1 parent 87b3c2a commit 5074e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const _DATEFORMAT_HOUR = "2006010215"
const _DATEFORMAT_MONTH = "200601"
const default_format = FORMAT_LEVELFLAG | FORMAT_SHORTFILENAME | FORMAT_DATE | FORMAT_TIME
const default_level = LEVEL_ALL
const default_formatter = "{level} {time} {file}:{message}\n"
const default_formatter = "{level}{time} {file}:{message}\n"

var static_mu = new(sync.Mutex)

Expand Down Expand Up @@ -127,7 +127,7 @@ func SetLevel(level _LEVEL) *Logging {
return static_lo.SetLevel(level)
}

/*设置输出格式,默认: "{level} {time} {file}:{message}\n" */
/*设置输出格式,默认: "{level}{time} {file}:{message}\n" */
func SetFormatter(formatter string) *Logging {
return static_lo.SetFormatter(formatter)
}
Expand Down

0 comments on commit 5074e24

Please sign in to comment.