← ClaudeAtlas

coldbox-logginglisted

Use this skill for all ColdBox-specific logging concerns: configuring LogBox inside a ColdBox application (config/LogBox.cfc, inline DSL, configFile pointer), per-environment log levels, injecting loggers into handlers/interceptors/services via the WireBox logbox DSL, accessing logbox from the ColdBox proxy, and logging best practices specific to the ColdBox lifecycle.
ColdBox/skills · ★ 0 · DevOps & Infrastructure · score 61
Install: claude install-skill ColdBox/skills
# ColdBox Logging Skill ## When to Use This Skill Load this skill when: - Configuring LogBox inside a ColdBox application - Choosing between `config/LogBox.cfc`, inline `logbox` DSL, or a `configFile` pointer - Setting per-environment log levels (development vs production) in `ColdBox.cfc` - Injecting loggers into handlers, interceptors, services, or models - Accessing LogBox from a ColdBox proxy - Combining LogBox with ColdBox lifecycle events (interceptors, error handling) > For standalone LogBox concepts (appenders, layouts, custom appenders), load the **logbox** skill. ## Language Mode Reference | Concept | BoxLang (`.bx`) | CFML (`.cfc`) | |---------|-----------------|---------------| | Class declaration | `class [extends="..."] {` | `component [extends="..."] {` | | DI annotation | `@inject` above property | `property name="x" inject="y";` | | Handler base | `extends="coldbox.system.EventHandler"` | same | | Interceptor base | `extends="coldbox.system.Interceptor"` | same | ## How ColdBox Loads LogBox ColdBox resolves your LogBox configuration in this order: 1. Is there a `logbox` variable in `config/ColdBox.cfc` `configure()`? - **No** → Does `config/LogBox.cfc` exist? **Yes** → use it by convention. **No** → use ColdBox framework defaults. - **Yes** → Does it have a `configFile` key? **Yes** → load that CFC. **No** → treat the struct as inline DSL. Default ColdBox configuration (if you define nothing): ```cfscript logBox = { appenders : { c