Skip to content

Commit

Permalink
Test NewLogger (#5316)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias authored Mar 20, 2024
1 parent 10c1eea commit 7169a6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bridges/otelslog/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import (
"go.opentelemetry.io/otel/log/embedded"
)

func TestNewLogger(t *testing.T) {
assert.IsType(t, &Handler{}, NewLogger().Handler())
}

// embeddedLogger is a type alias so the embedded.Logger type doesn't conflict
// with the Logger method of the recorder when it is embedded.
type embeddedLogger = embedded.Logger // nolint:unused // Used below.
Expand Down

0 comments on commit 7169a6f

Please sign in to comment.