Skip to content

Commit 52f1bce

Browse files
authored
Merge pull request #19 from goochjj/patch-1
Update ModuleConfig.cfc
2 parents 8f69852 + 1b66a8d commit 52f1bce

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/cbdebugger/ModuleConfig.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ component {
122122
if( !findNoCase( "4.3", controller.getSetting( "version", true ) ) ){
123123
return;
124124
}
125-
logBox.registerAppender( 'tracer', 'cbdebugger.includes.appenders.ColdBoxTracerAppender' );
125+
logBox.registerAppender( 'tracer', 'cbdebugger.includes.appenders.ColdboxTracerAppender' );
126126
var appenders = logBox.getAppendersMap( 'tracer' );
127127
// Register the appender with the root loggger, and turn the logger on.
128128
var root = logBox.getRootLogger();

modules/cbdebugger/includes/appenders/ColdboxTracerAppender.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Description :
1515
hint="An appender that interfaces with the ColdBox Tracer Panel">
1616

1717
<!--- Init --->
18-
<cffunction name="init" access="public" returntype="ColdBoxTracerAppender" hint="Constructor" output="false" >
18+
<cffunction name="init" access="public" returntype="ColdboxTracerAppender" hint="Constructor" output="false" >
1919
<!--- ************************************************************* --->
2020
<cfargument name="name" required="true" hint="The unique name for this appender."/>
2121
<cfargument name="properties" required="false" default="#structnew()#" hint="A map of configuration properties for the appender"/>

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ boolean function isDebuggerRendering()
8686

8787
## LogBox Appender
8888

89-
This module also comes with a LogBox appender called `cbdebugger.includes.appenders.ColdBoxTracerAppender` so your application can log to the debugger's tracer. You won't be able to configure the appender in your main LogBox configuration since modules aren't loaded until after LogBox is already created. What you can do though is add the appender programmatically to LogBox using the `afterConfigurationLoad` interception point. Here's an example of what that might look like:
89+
This module also comes with a LogBox appender called `cbdebugger.includes.appenders.ColdboxTracerAppender` so your application can log to the debugger's tracer. You won't be able to configure the appender in your main LogBox configuration since modules aren't loaded until after LogBox is already created. What you can do though is add the appender programmatically to LogBox using the `afterConfigurationLoad` interception point. Here's an example of what that might look like:
9090

9191

9292
```js
9393
// This appender is part of a module, so we need to register it after the modules have been loaded.
9494
function afterConfigurationLoad() {
9595
var logBox = controller.getLogBox();
96-
logBox.registerAppender( 'tracer', 'cbdebugger.includes.appenders.ColdBoxTracerAppender' );
96+
logBox.registerAppender( 'tracer', 'cbdebugger.includes.appenders.ColdboxTracerAppender' );
9797
var appenders = logBox.getAppendersMap( 'tracer' );
9898

9999
// Register the appender with the root loggger, and turn the logger on.

0 commit comments

Comments
 (0)