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
Copy file name to clipboardExpand all lines: docs/core/middleware/logger.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -257,6 +257,8 @@ Writing to `os.File` is goroutine-safe, but custom streams may require locking t
257
257
| TimeZone |`string`| TimeZone can be specified, such as "UTC" and "America/New_York" and "Asia/Chongqing", etc |`"Local"`|
258
258
| TimeInterval |`time.Duration`| TimeInterval is the delay before the timestamp is updated. |`500 * time.Millisecond`|
259
259
| Stream |`io.Writer`| Stream is a writer where logs are written. |`os.Stdout`|
260
+
| TimeDone |`<-chan struct{}`| TimeDone stops the background timestamp updater when it is closed. |`nil`|
261
+
| BeforeHandlerFunc |`func(*Config)`| BeforeHandlerFunc runs once before the handler is built, letting you customize colors, template, etc. |`beforeHandlerFunc`|
260
262
| LoggerFunc |`func(c fiber.Ctx, data *Data, cfg *Config) error`| Custom logger function for integration with logging libraries (Zerolog, Zap, Logrus, etc). Defaults to Fiber's default logger if not defined. |`see default_logger.go defaultLoggerInstance`|
261
263
| DisableColors |`bool`| DisableColors defines if the logs output should be colorized. |`false`|
262
264
| ForceColors |`bool`| ForceColors defines if the logs output should be colorized even when the output is not a terminal. |`false`|
0 commit comments