From 54b5120a647cc2f53b0ae5043e4e19d78504903a Mon Sep 17 00:00:00 2001 From: JessonChan Date: Tue, 8 Mar 2016 18:43:09 +0800 Subject: [PATCH] rename files to mulitfile --- logs/{files.go => mulitfile.go} | 2 +- logs/{files_test.go => mulitfile_test.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename logs/{files.go => mulitfile.go} (98%) rename logs/{files_test.go => mulitfile_test.go} (92%) 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")