Skip to content
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

Logging with decorator #179

Closed
tibuch opened this issue Sep 9, 2024 · 1 comment
Closed

Logging with decorator #179

tibuch opened this issue Sep 9, 2024 · 1 comment

Comments

@tibuch
Copy link
Contributor

tibuch commented Sep 9, 2024

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!

@imagejan
Copy link
Member

We decided this pattern (@log annotation with custom logger to be provided) is too over-engineered for our current use cases.

@imagejan imagejan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants