Thursday, July 21, 2005
JBoss - Bad Vibes
JBoss Inc continues to destroy their own trademark.
I guess Mr Fleury and Mr Burke got tired of bashing BEA and IBM and instead decided to go after one of the Open Source projects that is stealing some of the spotlight from the almighty 'JBoss Monolithic AppServer' (insert compulsory reference to 'One ring to rule them all...' etc..) - Spring.
I wonder if this is what's called "Professional Open Source"?
Read Logemann's summary here.
I guess Mr Fleury and Mr Burke got tired of bashing BEA and IBM and instead decided to go after one of the Open Source projects that is stealing some of the spotlight from the almighty 'JBoss Monolithic AppServer' (insert compulsory reference to 'One ring to rule them all...' etc..) - Spring.
I wonder if this is what's called "Professional Open Source"?
Read Logemann's summary here.
Thursday, July 14, 2005
Default log4j configuration?
Something that really annoys me is how log4j behaves when there's no "log4j.properties" or "log4j.xml" in the classpath.
Instead of printing out my log statements to System.out I simply get:
When discovering that there is no user-provided configuration, log4j would use a "fall-back" configuration instead (say, "default-log4j.properties" from the log4j.jar file). The content of such a file would be something really simple such as:
Update: There's a version 1.3 of log4j that's supposed to be released at some point. Does anyone know if this feature (or something similar) will be included in that release?
Instead of printing out my log statements to System.out I simply get:
log4j:WARN No appenders could be found for logger (com.foo.Bar).Wouldn't it be nice if log4j could provide a default configuration instead?
log4j:WARN Please initialize the log4j system properly.
When discovering that there is no user-provided configuration, log4j would use a "fall-back" configuration instead (say, "default-log4j.properties" from the log4j.jar file). The content of such a file would be something really simple such as:
log4j.rootLogger=DEBUG, Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
Update: There's a version 1.3 of log4j that's supposed to be released at some point. Does anyone know if this feature (or something similar) will be included in that release?
