I would like to format the logger with brackets and left-align the text.
formatter = logging.Formatter('[%(asctime)s] [%(levelname)-8s] [%(funcName)-12s] %(message)s')
Here is the result
[2019-09-13 16:22:56,050] [INFO ] [main ] Message 1
[2019-09-13 16:22:56,050] [DEBUG ] [do_debug ] Message 2
[2019-09-13 16:22:56,050] [WARNING ] [do_warning ] Message 3
But i would like to get something like this
[2019-09-13 16:22:56,050] [INFO] [main] Message 1
[2019-09-13 16:22:56,050] [DEBUG] [do_debug] Message 2
[2019-09-13 16:22:56,050] [WARNING] [do_warning] Message 3