18 lines
383 B
Python
18 lines
383 B
Python
import asyncio
|
|
import logging
|
|
import sys
|
|
|
|
from tracker.commands import end_workday
|
|
|
|
logging.basicConfig(
|
|
level=logging.INFO,
|
|
format='%(asctime)s %(name)s:%(lineno)d %(levelname)s %(message)s',
|
|
handlers=[
|
|
logging.FileHandler('app.log', encoding='utf-8'),
|
|
logging.StreamHandler(sys.stdout)
|
|
]
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(end_workday()) |