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
feat(logging): add LogManager.extend() for custom driver registration (#36)
* feat(logging): add LogManager.extend() for custom driver registration (#33)
Enables custom LoggerDriver registration via static extend() pattern
(mirrors AuthManager.extend). Custom drivers checked before built-in
switch in _resolveChannel(), config-driven resolution with override
support. Includes resetDrivers() for test cleanup.
* fix(docs): AuthManager.extend() → Auth.manager.extend(...) for accuracy (#36)
AuthManager.extend() is an instance method accessed via the facade,
not a static call. Updated docs and skill references to match.
> The `registerDriver` method is a convention. If `LogManager` doesn't support it natively, you can extend it or customize resolution logic.
239
+
This follows the same `extend()` pattern as `Auth.manager.extend(...)` for custom auth guards. The factory receives the channel's config map and returns a `LoggerDriver` instance.
249
240
250
241
Then use it in your config:
251
242
@@ -271,7 +262,17 @@ Log.channel('sentry').error('Something went wrong', {
271
262
272
263
## Example: Slack Notifications
273
264
274
-
Here's a complete example for Slack webhook logging:
0 commit comments