mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 12:27:02 +00:00
Nothing serious yet, thinking new features with the team, post some to help us!
Former-commit-id: 5741c47230bd2f3b88bf9e943742418be664cfdd
This commit is contained in:
@@ -30,11 +30,11 @@ type Config struct {
|
||||
// Defaults to true.
|
||||
Path bool
|
||||
|
||||
// Columns will display the logs as well formatted columns (bool).
|
||||
// Columns will display the logs as a formatted columns-rows text (bool).
|
||||
// If custom `LogFunc` has been provided then this field is useless and users should
|
||||
// use the `Columinize` function of the logger to get the output result as columns.
|
||||
//
|
||||
// Defaults to true.
|
||||
// Defaults to false.
|
||||
Columns bool
|
||||
|
||||
// MessageContextKey if not empty,
|
||||
@@ -61,7 +61,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
// DefaultConfig returns a default config
|
||||
// that have all boolean fields to true,
|
||||
// that have all boolean fields to true except `Columns`,
|
||||
// all strings are empty,
|
||||
// LogFunc and Skippers to nil as well.
|
||||
func DefaultConfig() Config {
|
||||
@@ -70,7 +70,7 @@ func DefaultConfig() Config {
|
||||
IP: true,
|
||||
Method: true,
|
||||
Path: true,
|
||||
Columns: true,
|
||||
Columns: false,
|
||||
MessageContextKey: "",
|
||||
LogFunc: nil,
|
||||
Skippers: nil,
|
||||
|
||||
Reference in New Issue
Block a user