add log support
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import logging
|
||||
|
||||
|
||||
def init_logger():
|
||||
logging.basicConfig(filename="appointment.log",
|
||||
filemode='a',
|
||||
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
|
||||
datefmt='%D:%H:%M:%S',
|
||||
level=logging.INFO)
|
||||
Reference in New Issue
Block a user