-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat(logging): added logging support #240
Conversation
* added support for `logger` * now able to log to `teal.modules.general` namespace using the logger package * also added info level logs to the modules Closes #224
Minimum allowed coverage is Generated by 🐒 cobertura-action against ec9984a |
I think each log_info should have argument |
The default behaviour is to log to the namespace equal to the package name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the DESCRIPTION file to include logger and we are free to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion we should merge it and later add shiny input logger separately when it will be available (new issue). @gogonzo are you content?
I wonder why not to add
|
Because it seems like it tries to be a trace log and not an info log, by default, we only want to show the most critical information, and IMO this is not it. You are welcome to create a discussion task where we can discuss if we're going to add more detailed logs to modules, but my knee-jerk reaction is to log less, not more, unless we have a specific reason to do it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
logger
teal.modules.general
namespace using the logger packageCloses Initialize the logger in .onLoad and add a logging info entry to each module #224
Take out any module for a ride to test.
IMPORTANT: this does not add logging changes in the shiny input because loggers function does not work with custom namespaces. Created an issue to add it later #239