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
do you have any plans on how to use cleo's self.line and verbosity levels in combination with logger, so log entries might get written (and colored) by a custom cleo handler?
Much harder, IMO, is to get that IO between IO initialization and running command. I solved this by calling ClikitHandler.setup_for right after ApplicationConfig.create_io():
Activity
flokli commentedon Jan 10, 2017
I had something like click-log in mind.
kam1sh commentedon Sep 30, 2019
It's easy to write
logging.Handler: just take clikit's IO and check verbosity before callingwrite_line:Much harder, IMO, is to get that IO between IO initialization and running command. I solved this by calling
ClikitHandler.setup_forright afterApplicationConfig.create_io():P.S.: this is not necroposting, I just want to help others struggling with lack of documentation about CliKit's IO and Cleo-Clikit integration.
esciara commentedon Oct 5, 2019
Actually it is exactly what I was looking for. Thanks @kam1sh !