(t *testing.T)
| 125 | } |
| 126 | |
| 127 | func TestDebug(t *testing.T) { |
| 128 | buf := new(bytes.Buffer) |
| 129 | log.SetOutput(buf) |
| 130 | Level = LevelDebug |
| 131 | Debug(nil) |
| 132 | |
| 133 | // outputf correctly prints string |
| 134 | if !strings.Contains(buf.String(), levelPrefix[LevelDebug]) { |
| 135 | t.Fail() |
| 136 | } |
| 137 | return |
| 138 | } |
| 139 | |
| 140 | type testSyslogger struct { |
| 141 | *bytes.Buffer |