mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 16:53:38 +00:00
Initial commit
This commit is contained in:
0
src/__init__.py
Normal file
0
src/__init__.py
Normal file
22
src/main.py
Normal file
22
src/main.py
Normal 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()
|
||||
Reference in New Issue
Block a user