Initial commit

This commit is contained in:
Daniel Alves Rösel
2026-04-02 18:47:14 +02:00
committed by GitHub
commit 90ad5e0260
94 changed files with 7797 additions and 0 deletions

22
src/main.py Normal file
View File

@@ -0,0 +1,22 @@
from alveslib import get_logger
def main():
logger = get_logger("example_service", level="DEBUG")
logger.info("Service starting up")
logger.debug("This is debug information")
logger.warning("This is a warning")
try:
# Simulate some work
result = 10 / 2
logger.info(f"Calculation result: {result}")
except Exception as e:
logger.error(f"Error occurred: {e}", exc_info=True)
logger.info("Service shutting down")
if __name__ == "__main__":
main()