Commit 54b5120a authored by JessonChan's avatar JessonChan

rename files to mulitfile

parent 3379a2b7
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment