diff --git a/console.go b/console.go index e20448b..bc6b8e9 100644 --- a/console.go +++ b/console.go @@ -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{}) { diff --git a/writer.go b/writer.go index fec664b..9b73fbb 100644 --- a/writer.go +++ b/writer.go @@ -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,