1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 20:51:29 +00:00

rename files to mulitfile

This commit is contained in:
JessonChan 2016-03-08 18:43:09 +08:00
parent 3379a2b7ed
commit 54b5120a64
2 changed files with 2 additions and 2 deletions

View File

@ -112,5 +112,5 @@ func newFilesWriter() Logger {
}
func init() {
Register("files", newFilesWriter)
Register("mulitfile", newFilesWriter)
}

View File

@ -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")