mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-01-18 23:37:05 +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
|
# pass
|
||||||
|
|
||||||
# Setup logging to file
|
# Setup logging to file
|
||||||
# TODO Add timestamps
|
logging.basicConfig(
|
||||||
logging.basicConfig(filename=twit_account + '.log', level=logging.INFO)
|
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('Running with the following parameters:')
|
||||||
logging.info(' -t ' + twit_account)
|
logging.info(' -t ' + twit_account)
|
||||||
logging.info(' -i ' + mast_instance)
|
logging.info(' -i ' + mast_instance)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user