blob: 8944e5b8a654729e76c79f21e2aedfd23c9dcf27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import logging as log
class PlayoffLogger:
@classmethod
def setup(cls, level):
log.basicConfig(
level=getattr(log, level),
streamhandler=log.StreamHandler(),
format='%(levelname)-8s %(name)-8s %(message)s')
@classmethod
def get(cls, category=''):
return log.getLogger(category)
|