13 lines
412 B
Python
13 lines
412 B
Python
import datetime
|
|
import logging
|
|
|
|
import definitions
|
|
|
|
|
|
def init_logger():
|
|
logging.basicConfig(filename=definitions.ROOT_DIR + "/appointment_{}.log".format(str(datetime.date.today())),
|
|
filemode='a',
|
|
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
|
|
datefmt='%Y-%m-%d %H:%M:%S',
|
|
level=logging.INFO)
|