I am trying Python logging.
Since I want some logger to share a formatter, I use hierarchy of logging like the below code.
As you can see, format is \'%(as
\'%(as
If you want the name to say 'bar' instead of 'foo.bar', just log to a logger named 'bar', and add your handlers to the root logger.