mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-01-18 15:27:07 +00:00
Implemented timestamps in logs
This commit is contained in:
parent
29629e2785
commit
c688035fd0
9
twoot.py
9
twoot.py
|
@ -275,8 +275,13 @@ def main(argv):
|
|||
# pass
|
||||
|
||||
# Setup logging to file
|
||||
# TODO Add timestamps
|
||||
logging.basicConfig(filename=twit_account + '.log', level=logging.INFO)
|
||||
logging.basicConfig(
|
||||
filename=twit_account + '.log',
|
||||
level=logging.INFO,
|
||||
fmt='%(asctime)s %(levelname)-8s %(message)s',
|
||||
datefmt='%Y-%m-%d %H:%M:%S',
|
||||
)
|
||||
|
||||
logging.info('Running with the following parameters:')
|
||||
logging.info(' -t ' + twit_account)
|
||||
logging.info(' -i ' + mast_instance)
|
||||
|
|
Loading…
Reference in New Issue
Block a user