-
Notifications
You must be signed in to change notification settings - Fork 8
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
CLI --quiet flag #2
Comments
i think this is a non issue? if you want quieter logs just do this: my_logger = Logger.new(STDOUT)
my_logger.level = Logger::WARN
Broadside.configure do |config|
config.logger = my_logger
end i have concluded that in general people should just configure the logger they want and pass it into whatever gem or library is in use, and not try to configure the logger with bespoke config options. i think we should close this. |
CLI tools generally offer loglevel options to fit different use cases. Also, we may want to force the |
just seems like in this case you always have to write ruby code to configure your application, so it's not a lot to ask the user to set up their own |
even so, in our use case we're calling broadside from both the command-line and as part of a script that samson runs. I could see a situation where the same app might require different log levels, depending if the deploy command is used as part of a script or if the status/ssh/bash command is used on CLI |
i guess what i could see being maybe useful would be if you could pass |
By default, debug logs are printed out, but would be nice to have a quiet flag or loglevel option to pass in.
The text was updated successfully, but these errors were encountered: