This repository was archived by the owner on Jan 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-43
lines changed Expand file tree Collapse file tree 2 files changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import (
1313 "fmt"
1414 "io"
1515 "log"
16- "log/syslog"
1716 "os"
1817 "strings"
1918)
@@ -61,15 +60,6 @@ type Log struct {
6160 * log.Logger
6261}
6362
64- // NewSysLog creates a new sys log.
65- func NewSysLog (opts ... Option ) * Log {
66- w , err := syslog .New (syslog .LOG_DEBUG , "" )
67- if err != nil {
68- panic (err )
69- }
70- return NewXLog (w , opts ... )
71- }
72-
7363// NewStdLog creates a new std log.
7464func NewStdLog (opts ... Option ) * Log {
7565 return NewXLog (os .Stdout , opts ... )
Original file line number Diff line number Diff line change @@ -28,39 +28,6 @@ func TestGetLog(t *testing.T) {
2828 GetLog ().Info ("INFO" )
2929}
3030
31- func TestSysLog (t * testing.T ) {
32- log := NewSysLog ()
33-
34- log .Debug ("DEBUG" )
35- log .Info ("INFO" )
36- log .Warning ("WARNING" )
37- log .Error ("ERROR" )
38-
39- log .SetLevel ("DEBUG" )
40- log .Debug ("DEBUG" )
41- log .Info ("INFO" )
42- log .Warning ("WARNING" )
43- log .Error ("ERROR" )
44-
45- log .SetLevel ("INFO" )
46- log .Debug ("DEBUG" )
47- log .Info ("INFO" )
48- log .Warning ("WARNING" )
49- log .Error ("ERROR" )
50-
51- log .SetLevel ("WARNING" )
52- log .Debug ("DEBUG" )
53- log .Info ("INFO" )
54- log .Warning ("WARNING" )
55- log .Error ("ERROR" )
56-
57- log .SetLevel ("ERROR" )
58- log .Debug ("DEBUG" )
59- log .Info ("INFO" )
60- log .Warning ("WARNING" )
61- log .Error ("ERROR" )
62- }
63-
6431func TestStdLog (t * testing.T ) {
6532 log := NewStdLog ()
6633
You can’t perform that action at this time.
0 commit comments