From f143d506a0f97d0ad26d2fcf39d1ac3e172ab2a2 Mon Sep 17 00:00:00 2001 From: kataras Date: Wed, 2 Aug 2017 15:10:02 +0300 Subject: [PATCH] Add support for fatal leveled logs via iris' logger Former-commit-id: 99f6d55201a3f6f774be7f2b89c8244f82f846d8 --- iris.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iris.go b/iris.go index b4bf89da..5eabf1c6 100644 --- a/iris.go +++ b/iris.go @@ -209,6 +209,7 @@ func (app *Application) ConfigurationReadOnly() context.ConfigurationReadOnly { // // Available levels: // - "disable" +// - "fatal" // - "error" // - "warn" // - "info" @@ -231,7 +232,7 @@ func (app *Application) ConfigurationReadOnly() context.ConfigurationReadOnly { // Adding custom levels requires import of the `github.com/kataras/golog` package: // First we create our level to a golog.Level // 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. // golog.Levels[SuccessLevel] = &golog.LevelMetadata{ // Name: "success",