You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Next |`func(*fiber.Ctx) bool`| Next defines a function to skip this middleware when returned true. |`nil`|
98
-
| Done |`func(*fiber.Ctx, []byte)`| Done is a function that is called after the log string for a request is written to Output, and pass the log string as parameter. |`nil`|
99
-
| CustomTags |`map[string]LogFunc`| tagFunctions defines the custom tag action. |`map[string]LogFunc`|
100
-
| Format |`string`| Format defines the logging tags. |`[${time}] ${status} - ${latency} ${method} ${path}\n`|
101
-
| TimeFormat |`string`| TimeFormat defines the time format for log timestamps. |`15:04:05`|
102
-
| TimeZone |`string`| TimeZone can be specified, such as "UTC" and "America/New_York" and "Asia/Chongqing", etc |`"Local"`|
103
-
| TimeInterval |`time.Duration`| TimeInterval is the delay before the timestamp is updated. |`500 * time.Millisecond`|
104
-
| Output |`io.Writer`| Output is a writer where logs are written. |`os.Stdout`|
105
-
| DisableColors |`bool`| DisableColors defines if the logs output should be colorized. |`false`|
106
-
| enableColors |`bool`| Internal field for enabling colors in the log output. (This is not a user-configurable field) | -|
107
-
| enableLatency |`bool`| Internal field for enabling latency measurement in logs. (This is not a user-configurable field) | -|
108
-
| timeZoneLocation |`*time.Location`| Internal field for the time zone location. (This is not a user-configurable field) | -|
| Next |`func(*fiber.Ctx) bool`| Next defines a function to skip this middleware when returned true. |`nil`|
98
+
| Done |`func(*fiber.Ctx, []byte)`| Done is a function that is called after the log string for a request is written to Output, and pass the log string as parameter. |`nil`|
99
+
| CustomTags |`map[string]LogFunc`| tagFunctions defines the custom tag action. |`map[string]LogFunc`|
100
+
| Format |`string`| Format defines the logging tags. | `${time}|${status} | ${latency} |${method} |${path} | ${error}\n` |
101
+
| TimeFormat |`string`| TimeFormat defines the time format for log timestamps. |`15:04:05`|
102
+
| TimeZone |`string`| TimeZone can be specified, such as "UTC" and "America/New_York" and "Asia/Chongqing", etc |`"Local"`|
103
+
| TimeInterval |`time.Duration`| TimeInterval is the delay before the timestamp is updated. |`500 * time.Millisecond`|
104
+
| Output |`io.Writer`| Output is a writer where logs are written. |`os.Stdout`|
105
+
| DisableColors |`bool`| DisableColors defines if the logs output should be colorized. |`false`|
106
+
| enableColors |`bool`| Internal field for enabling colors in the log output. (This is not a user-configurable field) | -|
107
+
| enableLatency |`bool`| Internal field for enabling latency measurement in logs. (This is not a user-configurable field) | -|
108
+
| timeZoneLocation |`*time.Location`| Internal field for the time zone location. (This is not a user-configurable field) | -|
0 commit comments