Skip to content

Commit

Permalink
add loggin basic config
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Feb 4, 2025
1 parent 8c27e7a commit 71322ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cloudcasting_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
# ---------------------------------------------------------------------------
# GLOBAL SETTINGS

logging.basicConfig(
level=getattr(logging, os.getenv("LOGLEVEL", "INFO")),
format="[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s",
)

# Create a logger
logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 71322ff

Please sign in to comment.