The complete journey of a log — from call to console.
Every log call follows a predictable pipeline of four stages:
Renders the visual group header and executes the logging function
(console.log, console.table, or console.time).
Only runs when global.debug is true.
Defined in global.callBack. Runs for every log,
regardless of group. Ideal for analytics, telemetry, or custom formatting.
Runs even if debug: false.
Defined per group (groups[name].callBack). Runs only for logs
in that specific group. Great for group‑specific logic.
Runs even if debug: false.
Passed directly in options.callBack. Runs only for that
single log, after all other callbacks.
Runs even if debug: false.
The order is always: Console Logger → Global → Group → Specific. This predictability is key to building reliable logging pipelines.
debug: false (skipping stage 1),
stages 2–4 still execute. This allows production telemetry
without console clutter.
Errors in any callback are caught and logged, but the application never crashes.
See API Reference: Errors for more details.
Global callback sends every log to your analytics service.
Specific callback sends Slack alerts only for critical logs.
Global callback enriches data (add timestamp, user ID) before output.
Conditional logic based on environment (dev/prod).
For working code examples, visit the Examples page.