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

Cool logging utilities #920

Closed
wants to merge 1 commit into from
Closed

Cool logging utilities #920

wants to merge 1 commit into from

Conversation

amrsoll
Copy link
Contributor

@amrsoll amrsoll commented Aug 10, 2020

No description provided.

@amrsoll amrsoll marked this pull request as ready for review August 10, 2020 14:53
@amrsoll
Copy link
Contributor Author

amrsoll commented Aug 10, 2020

No more

self.logger = mrb_logger("my_long_description.package.name", lvl=logging.INFO)
def f(self):
    self.logger.info(" f() : ", something)

Just

def f(self):
    logger = f_logger(level=logging.INFO)
    logger.info(something)

Or even shorter

def f(self):
    f_logger().info(something)

@amrsoll amrsoll marked this pull request as draft August 11, 2020 08:11
@amrsoll
Copy link
Contributor Author

amrsoll commented Sep 2, 2020

Closing in favour of #947.

@amrsoll amrsoll closed this Sep 2, 2020
@amrsoll amrsoll deleted the f_logging_utilities branch September 21, 2020 06:31
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

Successfully merging this pull request may close these issues.

1 participant