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
What is the feature you would like to implement?
A command line option should be added to allow users to toggle between different logging levels, check the version of the app, and print out all available commands.
Why is this feature important?
Will make it easier for users to manage the app in production
Will the protocol spec need to be updated??
No
The text was updated successfully, but these errors were encountered:
I've tried doing this by making a log level setting on CLI, tried setting the logger.level inside commander.action(), doesn't work. Tried making a singleton instance like this:
Doesn't work too. When I console.log() out the level of each logger, seems like they each have their own log level, and setting the level in one place doesn't change loggers in other modules, even though they're imported from the same place. The easiest solution for this issue seems to be setting the log level from the environment variable, then instantiating a logger instance with the wanted log level.
this is fine for now, and we can merge this pr in, but id like to keep the issue open so that we can investigate if there's a way to do a flag, since setting flags in cloud environments is usually easier than having to set environment variables.
What is the feature you would like to implement?
A command line option should be added to allow users to toggle between different logging levels, check the version of the app, and print out all available commands.
Why is this feature important?
Will make it easier for users to manage the app in production
Will the protocol spec need to be updated??
No
The text was updated successfully, but these errors were encountered: