mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 22:40:49 +00:00
rename files to mulitfile
This commit is contained in:
parent
3379a2b7ed
commit
54b5120a64
@ -112,5 +112,5 @@ func newFilesWriter() Logger {
|
||||
}
|
||||
|
||||
func init() {
|
||||
Register("files", newFilesWriter)
|
||||
Register("mulitfile", newFilesWriter)
|
||||
}
|
@ -24,7 +24,7 @@ import (
|
||||
|
||||
func TestFiles_1(t *testing.T) {
|
||||
log := NewLogger(10000)
|
||||
log.SetLogger("files", `{"filename":"test.log","separate":["emergency", "alert", "critical", "error", "warning", "notice", "info", "debug"]}`)
|
||||
log.SetLogger("mulitfile", `{"filename":"test.log","separate":["emergency", "alert", "critical", "error", "warning", "notice", "info", "debug"]}`)
|
||||
log.Debug("debug")
|
||||
log.Informational("info")
|
||||
log.Notice("notice")
|
Loading…
Reference in New Issue
Block a user