mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Add support for fatal leveled logs via iris' logger
Former-commit-id: 99f6d55201a3f6f774be7f2b89c8244f82f846d8
This commit is contained in:
3
iris.go
3
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",
|
||||
|
||||
Reference in New Issue
Block a user