Skip to content

Commit

Permalink
chore: readd old logger interface alias for backward compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: lvlcn-t <[email protected]>
  • Loading branch information
lvlcn-t committed Oct 2, 2024
1 parent d234b98 commit 865a4b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import (
"github.com/lvlcn-t/loggerhead/internal/logger"
)

// Logger is an alias for the [Provider] interface.
// It is defined for backward compatibility with previous versions of the logger package.
// FIXME: Will be removed with v0.4.0.
type Logger = Provider

// Provider is the interface for the logger.
// Its build on top of slog.Logger and extends it with additional logging methods.
type Provider = logger.Provider
Expand Down

0 comments on commit 865a4b3

Please sign in to comment.