Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(log): change slog import path #148

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions log/slog/adapter.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Package slog provides a logger that writes to a
// golang.org/x/exp/slog.Logger and implements the
// Package slog provides a logger that writes
// to a log/slog.Logger and implements the
// golang.ngrok.com/ngrok/log.Logger interface.
package slog

import (
"context"
"fmt"

"golang.org/x/exp/slog"
"log/slog"
)

type LogLevel = int
Expand Down
2 changes: 0 additions & 2 deletions log/slog/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module golang.ngrok.com/ngrok/log/slog

go 1.20

require golang.org/x/exp v0.0.0-20230307190834-24139beb5833
2 changes: 0 additions & 2 deletions log/slog/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
golang.org/x/exp v0.0.0-20230307190834-24139beb5833 h1:SChBja7BCQewoTAU7IgvucQKMIXrEpFxNMs0spT3/5s=
golang.org/x/exp v0.0.0-20230307190834-24139beb5833/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=