-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-channel and multi-error log support (#180)
- Loading branch information
Showing
5 changed files
with
375 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package logging | ||
|
||
import ( | ||
"github.com/rs/zerolog" | ||
"github.com/rs/zerolog/pkgerrors" | ||
) | ||
|
||
// init will instantiate the global logger and set up some global parameters from the zerolog package. | ||
func init() { | ||
// Instantiate the global logger | ||
GlobalLogger = NewLogger(zerolog.Disabled) | ||
|
||
// Setup stack trace support and set the timestamp format to UNIX | ||
zerolog.ErrorStackMarshaler = pkgerrors.MarshalStack | ||
zerolog.TimeFieldFormat = zerolog.TimeFormatUnix | ||
} |
Oops, something went wrong.