mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 20:37:05 +00:00
add LogLevel/WithLogLevel in Configuration and run Configurators before Build state
Former-commit-id: d38f1fdae98d650692775f4cee06bd017aba959f
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package context
|
||||
|
||||
import (
|
||||
"github.com/kataras/iris/v12/core/netutil"
|
||||
)
|
||||
import "github.com/kataras/iris/v12/core/netutil"
|
||||
|
||||
// ConfigurationReadOnly can be implemented
|
||||
// by Configuration, it's being used inside the Context.
|
||||
@@ -17,6 +15,10 @@ type ConfigurationReadOnly interface {
|
||||
// If original addr was 0.0.0.0, it will return localhost.
|
||||
GetVHost() string
|
||||
|
||||
// GetLogLevel returns the `Configuration.LogLevel` field.
|
||||
// The same (as `golog.LogLevel`) can be retrieved through `app.Logger().Level`.
|
||||
GetLogLevel() string
|
||||
|
||||
// GetDisablePathCorrection returns the configuration.DisablePathCorrection,
|
||||
// DisablePathCorrection corrects and redirects the requested path to the registered path
|
||||
// for example, if /home/ path is requested but no handler for this Route found,
|
||||
|
||||
Reference in New Issue
Block a user