Skip to content
Snippets Groups Projects
Commit 7ff5003d authored by John Harris's avatar John Harris
Browse files

fix: alter constructor to be logger specific

parent a7a7db1c
No related branches found
Tags v1.5.5
No related merge requests found
......@@ -6,7 +6,7 @@ import (
"strings"
)
func New(opts ...Option) *slog.Logger {
func NewLogger(opts ...Option) *slog.Logger {
options := &Options{
Leveler: slog.LevelDebug,
Writer: os.Stdout,
......
......@@ -21,7 +21,7 @@ func TestNew(t *testing.T) {
// Arrange
var buf bytes.Buffer
logger := New(WithWriter(&buf))
logger := NewLogger(WithWriter(&buf))
// Act
logger.Info("Foo", slog.String("bar", "baz"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment