Make sure creating and using a logger with an empty configuration doesn't result in a panic.
(t *testing.T)
| 24 | // Make sure creating and using a logger with an empty configuration doesn't |
| 25 | // result in a panic. |
| 26 | func TestDefaultConfig(t *testing.T) { |
| 27 | logger := New(&Config{}) |
| 28 | |
| 29 | if err := logger.Log("hello", "world"); err != nil { |
| 30 | t.Fatal(err) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func TestUnmarshallLevel(t *testing.T) { |
| 35 | l := &AllowedLevel{} |