MCPcopy Create free account
hub / github.com/OpenPipe/ART / demo_log_levels

Function demo_log_levels

dev/demo_logging.py:177–203  ·  view source on GitHub ↗

Demonstrate different log levels in action.

()

Source from the content-addressed store, hash-verified

175
176
177def demo_log_levels():
178 """Demonstrate different log levels in action."""
179 print("=" * 60)
180 print("LOG LEVELS DEMONSTRATION")
181 print("=" * 60)
182
183 print("Simulating application startup:")
184 info("Application starting up")
185 step("Initializing modules")
186 ok("Core modules loaded")
187 step("Starting services")
188 warn("Service A started with reduced performance mode")
189 ok("Service B started normally")
190 err("Service C failed to start")
191 dim(" Fallback: Using Service D instead")
192 ok("Service D started successfully")
193 info("Application startup complete")
194
195 print("\nSimulating application shutdown:")
196 info("Shutting down application")
197 step("Stopping services")
198 ok("All services stopped cleanly")
199 step("Cleaning up resources")
200 ok("Resources cleaned up")
201 info("Application shutdown complete")
202
203 print()
204
205
206def main():

Callers 1

mainFunction · 0.85

Calls 6

infoFunction · 0.90
stepFunction · 0.90
okFunction · 0.90
warnFunction · 0.90
errFunction · 0.90
dimFunction · 0.90

Tested by

no test coverage detected