Commit 54b5120a authored by JessonChan's avatar JessonChan

rename files to mulitfile

parent 3379a2b7
...@@ -112,5 +112,5 @@ func newFilesWriter() Logger { ...@@ -112,5 +112,5 @@ func newFilesWriter() Logger {
} }
func init() { func init() {
Register("files", newFilesWriter) Register("mulitfile", newFilesWriter)
} }
...@@ -24,7 +24,7 @@ import ( ...@@ -24,7 +24,7 @@ import (
func TestFiles_1(t *testing.T) { func TestFiles_1(t *testing.T) {
log := NewLogger(10000) 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.Debug("debug")
log.Informational("info") log.Informational("info")
log.Notice("notice") 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