Changeset 19f5ce5 in ammosreader


Ignore:
Timestamp:
05/18/23 14:42:53 (2 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
eb4459c
Parents:
338e792
Message:

logger refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/__init__.py

    r338e792 r19f5ce5  
    33import os
    44from pathlib import Path
    5 
    6 logger = logging.getLogger(__name__)
    75
    86# change the default log path to /var/log/ammos/ammos.log when system configuration created this dir
     
    2321else:
    2422#   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
     25logger = logging.getLogger(__name__)
Note: See TracChangeset for help on using the changeset viewer.