Skip to content

Commit

Permalink
set log filename from env variable, close #687
Browse files Browse the repository at this point in the history
  • Loading branch information
avaldebe committed Aug 2, 2022
1 parent 28314a6 commit 96018ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyaerocom/_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
from __future__ import annotations

import logging
import os
from importlib import resources
from logging.config import fileConfig

LOGGING_CONFIG = dict(
# root logger
file_name="pyaerocom.log",
file_name=os.getenv("PYAEROCOM_LOG_FILE", "pyaerocom.log"),
file_days="14",
file_level="DEBUG",
# pyaerocom logger
Expand Down

0 comments on commit 96018ab

Please sign in to comment.