Skip to content

Commit 55014a7

Browse files
authored
Add tracer debug output by default
1 parent 18ec4d8 commit 55014a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/cbdebugger/ModuleConfig.cfc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,13 @@ component {
114114
// incorporate settings
115115
structAppend( configStruct.debugger, debuggerDSL, true );
116116
}
117+
118+
// This appender is part of a module, so we need to register it after the modules have been loaded.
119+
function afterConfigurationLoad() {
120+
var logbox = controller.getLogBox();
121+
var config = logbox.getConfig();
122+
config.appender( 'tracer', 'cbdebugger.includes.appenders.ColdBoxTracerAppender' );
123+
config.root( 0, 4, '*' );
124+
logbox.configure( config );
125+
}
117126
}

0 commit comments

Comments
 (0)