Changeset 19f5ce5 in ammosreader
- Timestamp:
- 05/18/23 14:42:53 (2 years ago)
- Branches:
- AmmosSource, guix
- Children:
- eb4459c
- Parents:
- 338e792
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ammosreader/__init__.py
r338e792 r19f5ce5 3 3 import os 4 4 from pathlib import Path 5 6 logger = logging.getLogger(__name__)7 5 8 6 # change the default log path to /var/log/ammos/ammos.log when system configuration created this dir … … 23 21 else: 24 22 # print("Logging to", str(log_path)) 25 logging.basicConfig(filename=str(log_path)) 23 logging.basicConfig(filename=str(log_path), encoding='utf-8', level=logging.DEBUG) 24 25 logger = logging.getLogger(__name__)
Note:
See TracChangeset
for help on using the changeset viewer.