Skip to content

Commit

Permalink
fixed for outer writer
Browse files Browse the repository at this point in the history
  • Loading branch information
daneshvar committed Aug 18, 2021
1 parent f73b18d commit 1024978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion console.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func ConsoleWriterWithOptions(caller bool, stack EnablerFunc, enabler EnablerFun
c.writeCaller = c.writeCallerSimple
}

return newWriter(enabler, stack, caller, c)
return NewWriter(enabler, stack, caller, c)
}

func (c *Console) Print(l Level, scope string, caller string, stack []string, messages []interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Writer struct {
caller bool
}

func newWriter(enabler EnablerFunc, stack EnablerFunc, caller bool, encoder encoder) *Writer {
func NewWriter(enabler EnablerFunc, stack EnablerFunc, caller bool, encoder encoder) *Writer {
return &Writer{
encoder: encoder,
enabler: enabler,
Expand Down

0 comments on commit 1024978

Please sign in to comment.