slpkg/slpkg/logging_config.py
Dimitris Zlatanidis 7673f054ee Renamed for process
2023-06-29 12:34:06 +03:00

18 lines
514 B
Python

#!/usr/bin/python3
# -*- coding: utf-8 -*-
import logging
from pathlib import Path
from datetime import datetime
class LoggingConfig:
date_now = datetime.now()
level = logging.INFO
filemode: str = 'w'
encoding: str = 'utf-8'
log_path: Path = Path('/var/log/slpkg/')
log_file: Path = Path(log_path, 'slpkg.log')
date: str = f'{date_now.day}/{date_now.month}/{date_now.year}'
time: str = f'{date_now.hour}:{date_now.minute}:{date_now.second}'
date_time: str = f'{date} {time}'