mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-06 10:57:51 +00:00
changed log timestamp format
This commit is contained in:
parent
662ff2d00c
commit
e9aba3ac88
1 changed files with 6 additions and 3 deletions
|
|
@ -67,9 +67,12 @@ func (self *Service) getProduction() string {
|
|||
log_level := config.GetStringDefault("log_level", "info")
|
||||
prod_config := fmt.Sprintf(`<seelog minlevel="%s">
|
||||
<outputs>
|
||||
<rollingfile type="size" filename="%s" maxsize="524288000" maxrolls="4" />
|
||||
</outputs>
|
||||
</seelog>`, log_level, fname)
|
||||
<rollingfile type="size" filename="%s" maxsize="524288000" maxrolls="4" formatid="format1" />
|
||||
</outputs> `, log_level, fname)
|
||||
prod_config += `<formats>
|
||||
<format id="format1" format="%Date/%Time [%LEV] %Msg%n"/>
|
||||
</formats>
|
||||
</seelog>`
|
||||
fmt.Println(prod_config)
|
||||
return prod_config
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue