Add support for fatal leveled logs via iris' logger

Former-commit-id: 99f6d55201a3f6f774be7f2b89c8244f82f846d8
This commit is contained in:
kataras 2017-08-02 15:10:02 +03:00
parent 6231f96d5f
commit f143d506a0

View File

@ -209,6 +209,7 @@ func (app *Application) ConfigurationReadOnly() context.ConfigurationReadOnly {
// //
// Available levels: // Available levels:
// - "disable" // - "disable"
// - "fatal"
// - "error" // - "error"
// - "warn" // - "warn"
// - "info" // - "info"
@ -231,7 +232,7 @@ func (app *Application) ConfigurationReadOnly() context.ConfigurationReadOnly {
// Adding custom levels requires import of the `github.com/kataras/golog` package: // Adding custom levels requires import of the `github.com/kataras/golog` package:
// First we create our level to a golog.Level // First we create our level to a golog.Level
// in order to be used in the Log functions. // in order to be used in the Log functions.
// var SuccessLevel golog.Level = 5 // var SuccessLevel golog.Level = 6
// Register our level, just three fields. // Register our level, just three fields.
// golog.Levels[SuccessLevel] = &golog.LevelMetadata{ // golog.Levels[SuccessLevel] = &golog.LevelMetadata{
// Name: "success", // Name: "success",