-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log extension within the loopback/extensions #4089
Comments
@fidgi , you mean something like this ? |
@marioestradarosa What I'm looking for is a mixin to ease the integration of a logging framework such as winston and an option in loopback/cli to enable this mixin at app creation time . |
@fidgi correct!, I just wanted to make sure that's final log functionality you were looking for. Indeed that could be a good feature "external extension/package" to leverage the extensibility of |
@raymondfeng thank for working on this |
Cross-posted from #4117 (comment) I'd like to start the discussion with building a better understanding of different loggers and log collectors that we can choose from. @raymondfeng Why did you pick winston and fluentd in particular? Personally, I prefer to use I am not familiar with log collectors. I see that fluentd is a part of Cloud Native Computing Foundation, I guess that makes it a good candidate. @strongloop/loopback-next thoughts? |
I'm fine with any logging framework that is extensible and that provide a way to hide sensible data in the logs depending of the log level. For what I know winston is ok. |
For the record, Pino seems to focus more on efficiency but its extensibility has room for improvement, for example, formatter to transform logs and transports to collect logs to physical destinations. |
@raymondfeng , we have been using |
Please check out https://github.com/strongloop/loopback-next/blob/logging/extensions/logging/README.md. Feedback is welcome! |
@raymondfeng Thanks for this great work. . |
Closing as done. Thanks. |
Suggestion
It would be great to have a log extension (something similar to the log-extension example within the supported loopback extensions
Use Cases
Just to be able manage log level indevelopment and production mode
Examples
see log-extension example
Acceptance criteria
TBD - will be filled by the team.
The text was updated successfully, but these errors were encountered: