Skip to content

Instantly share code, notes, and snippets.

View ashishkandu-code's full-sized avatar

ashishkandu-code

View GitHub Profile
@ashishkandu-code
ashishkandu-code / logging.py
Created May 16, 2023 07:23 — forked from kingspp/logging.py
Python Comprehensive Logging using YAML Configuration
import os
import yaml
import logging.config
import logging
import coloredlogs
def setup_logging(default_path='logging.yaml', default_level=logging.INFO, env_key='LOG_CFG'):
"""
| **@author:** Prathyush SP
| Logging Setup