I am super excited to announce the ColdBox Platform 3.0.0 M6 release! Why? Because it holds one of my favorite subjects......Caching! With this release we complete yet another standalone framework cycle with the introduction to CacheBox. However, we won't delve too much on CacheBox in this post as it is deserving of its own, so the next post is the announcement of the release of CacheBox 1.0. However, the major part of this release is CacheBox, so lets introduce this bad boy:
Entries Tagged as 'LogBox'
Our amazing LogBox: Enterprise Logging Library reaches another step in maturity to version 1.4. This release has some great additions but also some needed fixes. We have now also added the ability to download and view the CFC API Docs online thanks to Mark Mandel's ColdDoc, thanks Mark! ColdDoc is now part of the build processes of ColdBox and auxiliary frameworks.
You can now download the LogBox version that contains the docs and both versions of LogBox: standalone and coldbox enabled. Of course, all our docs are now updated also.
This release includes the following:
Version 1.4
http://coldbox.assembla.com/spaces/coldbox/milestones/222897-logbox-1-4
Appender Affinity
You can now define a last line of defense at the appender level. Each appender can define their own logging levels if needed.
LogBox Schema
If you like XML (we won't hold it against you), you can now use our nifty schema to get tag insight and validation. The schema can be located in "logbox/system/config/LogBoxConfig.xsd" or can be found online on a per version basis:
http://coldbox.org/schema/LogBoxConfig_1.4.xsd

Version 1.3
http://coldbox.assembla.com/spaces/coldbox/milestones/187467-logbox-1-3
- Varscoping issue for DBAppender
- Varscoping issue for Logger object
- fix for category inheritance issues on locateCategoryParentLogger thanks to Sean Corfield
- fixes when declaring appenders and * appenders on XML declarations
- Add the ability to configure levels of logging on Appenders as a last line of granularity (some nice candy)

- Added some new methods to the LogBoxConfig object: resetAppenders(), resetCategories and resetRoot() to reset some configurations.
- Fixes on appender declarations and layouts
- Addition of the LogBox DSL to coldbox configuration file, so now you can configure logbox via a cool DSL
- Ability to configure LogBox via a simple CFC with a simple configure() method and our cool DSL
function configure(){
logBox = {
// Appenders appenders = {
appenderName = {
class="class.to.appender",
layout="class.to.layout",
properties={
name = value,
prop2 = value 2
}
},
// Root Logger root = {levelMin="FATAL", levelMax="DEBUG", appenders="*"},
// Granualr Categories categories = {
"coldbox.system" = { levelMin="FATAL", levelMax="INFO", appenders="*"},
"model.security" = { levelMax="DEBUG", appenders="console,twitter"}
}
// Implicit categories debug = ["coldbox.system.interceptors"],
info = ["model.class", "model2.class2"],
warn = ["model.class", "model2.class2"],
error = ["model.class", "model2.class2"],
fatal = ["model.class", "model2.class2"],
off = ["model.class", "model2.class2"]
};
}
So what's new with LogBox 1.1, well here are the tickets:
The most important considerations are that we now have a utility that distinguishes when you are within an executed cfthread in any CFML engine. LogBox uses this now for all of its asynchronous operations. We also have refactored the download so LogBox can be installed alongside any ColdBox version or any other framework. If you want to use LogBox in your ColdBox 3.0.0 applications, you already have it installed, so don't worry.
Category definitions can now use '*' to define that you want ALL appenders for a specific logging category. You can also omit them and LogBox will add all of them too. However, be precise and use '*' if you want all appenders.
The last ticket was contributed to us and it is a great addition to the Email Appender, so now you can set the flags for SSL and TLS a-la-carte. So enjoy LogBox 1.1!
Now to our mocking and stubbing library MockBox! So what's new with MockBox 1.1:
| 911 | Standalone version should be refactored into its own namespace | Fixed |
| 940 | new method querySim() to help simulate queries | Fixed |
We have also refactored the standalone download so it can be used alongside any ColdBox version or framework. We have also added a nice UDF to simulate queries called querySim(). This way you can easily simulate and mock queries from your tests by doing things like:
mockQuery = querySim("col1, col2
val1 | val2
valrow2 | valRow2
valRow3 | valRow3");
That's it, just use the first line of the call to put your columns comma delimited and then a break and you rows separated by breaks and columns separated by '|'. A very cool way to simulate queries.
And finally, it has some minor fixes and tweaks, nothing extraordinary apart from the library itself!
So enjoy these two new standalone releases which can also be found in our upcoming ColdBox 3.0.0 Milestone 4 release!

Categories

Archives
Advertise With Us
Team ColdBox
Photos