mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:50:56 +00:00
add a line of comment
This commit is contained in:
parent
26cc040f9a
commit
387dd6ec0e
@ -55,10 +55,10 @@ func (f *filesLogWriter) Init(config string) error {
|
|||||||
f.fullLogWriter = writer
|
f.fullLogWriter = writer
|
||||||
f.writers[LevelDebug+1] = writer
|
f.writers[LevelDebug+1] = writer
|
||||||
|
|
||||||
|
//unmarshal "separate" field to f.Separate
|
||||||
json.Unmarshal([]byte(config), f)
|
json.Unmarshal([]byte(config), f)
|
||||||
|
|
||||||
jsonMap := map[string]interface{}{}
|
jsonMap := map[string]interface{}{}
|
||||||
|
|
||||||
json.Unmarshal([]byte(config), &jsonMap)
|
json.Unmarshal([]byte(config), &jsonMap)
|
||||||
|
|
||||||
for i := LevelEmergency; i < LevelDebug+1; i++ {
|
for i := LevelEmergency; i < LevelDebug+1; i++ {
|
||||||
@ -70,7 +70,6 @@ func (f *filesLogWriter) Init(config string) error {
|
|||||||
writer = newFileWriter().(*fileLogWriter)
|
writer = newFileWriter().(*fileLogWriter)
|
||||||
writer.Init(string(bs))
|
writer.Init(string(bs))
|
||||||
f.writers[i] = writer
|
f.writers[i] = writer
|
||||||
fmt.Println(writer.Filename)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user