Skip to content

Commit

Permalink
Add SetStdoutOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 28, 2018
1 parent 103a6da commit 94f6ae3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions default_notepad.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ func SetStdoutThreshold(threshold Threshold) {
reloadDefaultNotepad()
}

// SetStdoutOutput set the stdout output for the default notepad. Default is stdout.
func SetStdoutOutput(handle io.Writer) {
defaultNotepad.outHandle = handle
defaultNotepad.init()
reloadDefaultNotepad()
}

// SetPrefix set the prefix for the default logger. Empty by default.
func SetPrefix(prefix string) {
defaultNotepad.SetPrefix(prefix)
Expand Down

0 comments on commit 94f6ae3

Please sign in to comment.