mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:20:54 +00:00
rename files to mulitfile
This commit is contained in:
parent
3379a2b7ed
commit
54b5120a64
@ -112,5 +112,5 @@ func newFilesWriter() Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
Register("files", newFilesWriter)
|
Register("mulitfile", newFilesWriter)
|
||||||
}
|
}
|
@ -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")
|
Loading…
Reference in New Issue
Block a user