Level name formatting
This commit is contained in:
parent
4f65434628
commit
7ebf0eb44b
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import logging
|
||||||
|
|
||||||
log = logging.getLogger('aternos')
|
log = logging.getLogger('aternos')
|
||||||
handler = logging.StreamHandler()
|
handler = logging.StreamHandler()
|
||||||
fmt = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
|
fmt = logging.Formatter('%(asctime)s %(levelname)-5s %(message)s')
|
||||||
|
|
||||||
handler.setFormatter(fmt)
|
handler.setFormatter(fmt)
|
||||||
log.addHandler(handler)
|
log.addHandler(handler)
|
||||||
|
|
Reference in a new issue