Mar 19
By: Luis Majano
On the spirit of non-stop releases, here is LogBox version 1.2. Apart from some bug fixes we have squeezed in some great new functionality, especially when dealing with configuring LogBox and portability. Check out our milestone tickets for further review.
Version 1.2 Tickets
- 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"]
};
}
Categories

Archives
Advertise With Us
Team ColdBox
Photos