Skip to content

Commit 6482989

Browse files
committed
more tests and visual debugger version showing up
1 parent bd5193a commit 6482989

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

ModuleConfig.cfc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ component {
88
// Module Properties
99
this.title = "ColdBox Debugger";
1010
this.author = "Curt Gratz - Ortus Solutions";
11+
this.version = "@build.version@[email protected]@";
1112
this.webURL = "https://www.ortussolutions.com";
1213
this.description = "The ColdBox Debugger Module";
1314
// If true, looks for views in the parent first, if not found, then in the module. Else vice-versa

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Added
1313

1414
* Upgraded Appender to script and fixes for LogBox 6
15+
* More tests for logbox loading and appender registration
16+
17+
### Fixed
18+
19+
* Visual display of the debugger version
1520

1621
----
1722

test-harness/config/Coldbox.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
defaultEvent = "",
1818
requestStartHandler = "",
1919
requestEndHandler = "",
20-
applicationStartHandler = "",
20+
applicationStartHandler = "main.onAppInit",
2121
applicationEndHandler = "",
2222
sessionStartHandler = "",
2323
sessionEndHandler = "",

test-harness/handlers/Main.cfc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ component{
55

66
// Index
77
any function index( event,rc, prc ){
8+
log.info( "in the index event firing" );
89
}
910

1011
any function noDebugger( event, rc, prc ){
@@ -14,6 +15,14 @@ component{
1415

1516
// Run on first init
1617
any function onAppInit( event, rc, prc ){
18+
var logBox = controller.getLogBox();
19+
logBox.registerAppender( 'tracer', 'cbdebugger.includes.appenders.ColdboxTracerAppender' );
20+
var appenders = logBox.getAppendersMap( 'tracer' );
21+
// Register the appender with the root loggger, and turn the logger on.
22+
var root = logBox.getRootLogger();
23+
root.addAppender( appenders[ 'tracer' ] );
24+
root.setLevelMax( 4 );
25+
root.setLevelMin( 0 );
1726
}
1827

1928
}

0 commit comments

Comments
 (0)