Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix path to lambda_handler in dockerfile #39

Merged
merged 14 commits into from
Dec 9, 2024
Prev Previous commit
Next Next commit
logging comments
  • Loading branch information
bendsouza2 committed Dec 9, 2024
commit 2aa527213252bc2ab089a4229ff63f6eac35d65f
6 changes: 3 additions & 3 deletions python/custom_logging.py
Original file line number Diff line number Diff line change
@@ -17,14 +17,14 @@ def get_logger(module_name: str) -> logging.Logger:
logging.Logger: Configured logger instance.
"""
logger = logging.getLogger(module_name)
if not logger.hasHandlers(): # Prevents adding handlers multiple times if reused
handler = logging.StreamHandler() # Logs to stdout by default
if not logger.hasHandlers():
handler = logging.StreamHandler()
formatter = logging.Formatter(
"%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.INFO) # Set your desired logging level here
logger.setLevel(logging.INFO)
return logger


Loading