Skip to content

Commit

Permalink
chore: use text logger for otel example
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed Mar 3, 2024
1 parent 440f41d commit 7ffdb42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/open-telemetry/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"context"
"os"

"github.com/lvlcn-t/loggerhead/logger"
"go.opentelemetry.io/otel"
Expand All @@ -12,8 +11,8 @@ import (
)

func main() {
os.Setenv("LOG_FORMAT", "text")
log := logger.NewNamedLogger("otel-example", logger.Opts{
Format: "text",
OpenTelemetry: true,
})

Expand Down

0 comments on commit 7ffdb42

Please sign in to comment.