Closed tibuch closed 3 weeks ago
Copied from here.
my_logger = create_logger(name="processing") @log(logger=my_logger) def run_processing(input_dir: str, output_dir: str): # do some processing my_logger.info("Done!")
We should start a example collection to keep track of these tips and tricks!
We decided this pattern (@log annotation with custom logger to be provided) is too over-engineered for our current use cases.
@log
logger
Copied from here.
We should start a example collection to keep track of these tips and tricks!