mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
Add support for fatal leveled logs via iris' logger
Former-commit-id: 99f6d55201a3f6f774be7f2b89c8244f82f846d8
This commit is contained in:
parent
6231f96d5f
commit
f143d506a0
3
iris.go
3
iris.go
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user