Access to logger in extensions #7737
Replies: 2 comments
-
Agreed! Makes sense to me 👍🏻 (cc @nickrum) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This has since been added 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In custom endpoints and hooks it would be easy to pass the logger as part of the
ExtensionContext
.You could opt to make a child logger to differentiate Directus logs from application logs.
If you agree I can PR.
FYI this also works now.
Beta Was this translation helpful? Give feedback.
All reactions