Skip to content

Commit

Permalink
Merge pull request #20 from JacobCallahan/master
Browse files Browse the repository at this point in the history
Added in directory creation for logging path
  • Loading branch information
synkd authored Apr 27, 2023
2 parents c3323a4 + b68d3a9 commit f5b3433
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Unit Tests
run: |
pip install -U pip
# pip install -U .[test]
pip install -U .[test]
cp manifester_settings.yaml.example manifester_settings.yaml
manifester --help
# pytest -v tests/ --ignore tests/functional
2 changes: 2 additions & 0 deletions manifester/logger.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import logging
from pathlib import Path

import logzero

from manifester.settings import settings


def setup_logzero(level="info", path="logs/manifester.log", silent=True):
Path(path).parent.mkdir(parents=True, exist_ok=True)
log_fmt = "%(color)s[%(levelname)s %(asctime)s]%(end_color)s %(message)s"
debug_fmt = (
"%(color)s[%(levelname)1.1s %(asctime)s %(module)s:%(lineno)d]"
Expand Down

0 comments on commit f5b3433

Please sign in to comment.