diff --git a/logs/files.go b/logs/mulitfile.go similarity index 98% rename from logs/files.go rename to logs/mulitfile.go index b312041c..599870f8 100644 --- a/logs/files.go +++ b/logs/mulitfile.go @@ -112,5 +112,5 @@ func newFilesWriter() Logger { } func init() { - Register("files", newFilesWriter) + Register("mulitfile", newFilesWriter) } diff --git a/logs/files_test.go b/logs/mulitfile_test.go similarity index 92% rename from logs/files_test.go rename to logs/mulitfile_test.go index 058ba902..5e1e3f06 100644 --- a/logs/files_test.go +++ b/logs/mulitfile_test.go @@ -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")