Getting started¶
Build a working ezplog setup in less than 5 minutes.
🔧 Prerequisites¶
- Python 3.11 or higher
- A project where you can run Python scripts
📝 Steps¶
1. Install ezplog¶
2. Initialize app mode once¶
from ezplog import Ezpl
ezpl = Ezpl(
log_file="app.log", # (1)!
hook_logger=True, # (2)!
hook_printer=True, # (3)!
)
ezpl.info("Application started")
ezpl.get_printer().success("Ready")
ezpl.get_logger().info("Written to app.log")
- Creates the file sink destination.
- Routes stdlib loggers into the unified pipeline.
- Allows lazy library printers to delegate to the active
EzPrinter.
3. Verify library compatibility¶
✅ Success check
You should see one console message and one log entry in app.log.
✅ What you built¶
You now have one app-level logging configuration with unified console and file output. Library loggers and printers are routed through explicit compatibility hooks.