News for hackers. Stuff that matters.
Re:Daquiri – logging for Python that works by default by dozzie on Saturday August 05, 2017 @10:11AM (#14935792)
> Each time I write a new application, I need to remember how to set logging up.

You mean, like this?

  import logging.config
  import yaml

  with open(log_config_file) as f:
      logging.config.dictConfig(yaml.safe_load(f))
Because this is the correct way that allows the user to supply their own configuration that is not tied tightly to your little program.

There are no comments on this comment yet.