Issue #682: convert logs package to RFC5424 logging levels.
This commit is contained in:
@@ -141,7 +141,7 @@ func (w *FileLogWriter) docheck(size int) {
|
||||
|
||||
// write logger message into file.
|
||||
func (w *FileLogWriter) WriteMsg(msg string, level int) error {
|
||||
if level < w.Level {
|
||||
if level > w.Level {
|
||||
return nil
|
||||
}
|
||||
n := 24 + len(msg) // 24 stand for the length "2013/06/23 21:00:22 [T] "
|
||||
|
||||
Reference in New Issue
Block a user