Skip to content

Commit

Permalink
rename files to mulitfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JessonChan committed Mar 8, 2016
1 parent 3379a2b commit 54b5120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logs/files.go → logs/mulitfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ func newFilesWriter() Logger {
}

func init() {
Register("files", newFilesWriter)
Register("mulitfile", newFilesWriter)
}
2 changes: 1 addition & 1 deletion logs/files_test.go → logs/mulitfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 54b5120

Please sign in to comment.