Skip to content

Commit

Permalink
Test coverage FileLogger
Browse files Browse the repository at this point in the history
Signed-off-by: David Alger <davidmalger@gmail.com>
  • Loading branch information
davidalger committed Feb 23, 2024
1 parent c6bc7fb commit 2ffd947
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/logging/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func TestLogger(t *testing.T) {
defaultLogger := DefaultLogger(v1alpha1.LogLevelInfo)
assert.NotNil(t, defaultLogger.logging)
assert.NotNil(t, defaultLogger.sugaredLogger)

fileLogger := FileLogger("/dev/stderr", "fl-test", v1alpha1.LogLevelInfo)
assert.NotNil(t, fileLogger.logging)
assert.NotNil(t, fileLogger.sugaredLogger)
}

func TestLoggerWithName(t *testing.T) {
Expand Down

0 comments on commit 2ffd947

Please sign in to comment.