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/whats_new.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -995,7 +995,7 @@ INFO Total process count: 1
995
995
996
996
## π Log
997
997
998
-
`fiber.AllLogger` interface now has a new method called `Logger`. This method can be used to get the underlying logger instance from the Fiber logger middleware. This is useful when you want to configure the logger middleware with a custom logger and still want to access the underlying logger instance.
998
+
`fiber.AllLogger[T]` interface now has a new generic type parameter `T` and a method called `Logger`. This method can be used to get the underlying logger instance from the Fiber logger middleware. This is useful when you want to configure the logger middleware with a custom logger and still want to access the underlying logger instance with the appropriate type.
999
999
1000
1000
You can find more details about this feature in [/docs/api/log.md](./api/log.md#logger).
1001
1001
@@ -1436,6 +1436,7 @@ fiber migrate --to 3.0.0
1436
1436
-[π§ Context](#-context-1)
1437
1437
-[π Binding (was Parser)](#-parser)
1438
1438
-[π Redirect](#-redirect-1)
1439
+
-[π§Ύ Log](#-log-1)
1439
1440
-[π Client package](#-client-package-1)
1440
1441
-[π οΈ Utils](#utils-migration)
1441
1442
-[𧬠Middlewares](#-middlewares-1)
@@ -1903,6 +1904,10 @@ Fiber v3 enhances the redirect functionality by introducing new methods and impr
1903
1904
1904
1905
</details>
1905
1906
1907
+
#### π§Ύ Log
1908
+
1909
+
The `ConfigurableLogger` and `AllLogger` interfaces now use generics. You can specify the underlying logger type when implementing these interfaces. While`any` can be used for maximum flexibility in some contexts, when retrieving the concrete logger via `log.DefaultLogger`, you must specify the exact underlying logger type, for example `log.DefaultLogger[*MyLogger]().Logger()`.
1910
+
1906
1911
### π Clientpackage
1907
1912
1908
1913
Fiber v3 introduces a completely rebuilt client package with numerous new features such as Cookiejar, request/response hooks, and more. Here is a guide to help you migrate from Fiber v2 to Fiber v3.
0 commit comments