any chance you can use logging instead of print? that way levels and formatting can be set by core app
print statements go only to console, it excludes any logging to file which is pretty important for any usage of app as a background service which is a big deal
for example:
import logging
log = logging.getLogger("lycoris")
log.info(f'any info you want to be printed during app startup, but dont print on each generate')
log.warning(f'any warnings')
log.error(f'any errrors')
log.debug(f'any extra info you want anytime you want')
one issue i have is with
lyco
loggingfor every generate it prints this:
logging
instead ofprint
? that way levels and formatting can be set by core appfor example: