Using JBoss LogManager with Teiid Embedded

Page edited by Kylin Soong


Changes (3)

...
* Specify a logging configuration properties

Primary purpose of this document is supply a solution for using sing JBoss LogManager with Teiid Embedded.
Teiid LogManager represents the interface to a single logging framework that is easily accessible by any component. Using the LogManager, a component can quickly submit a log message, and can rely upon the LogManager to determine
* whether that message is to be recorded or discarded
* where to send any recorded messages

Teiid LogManager default use jdk logging framework, so if replace JDK logging system LogManager with JBoss LogManager, then use JBoss LogManager's bridge feature, it's easy to use many logging frameworks within Teiid Embedded.        


...

Full Content

JBoss LogManager is a replacement for the JDK logging system LogManager that fixes or works around many serious problems in the default implementation, and add the the feature to bridge many logging frameworks like JBoss logging, log4j, slf4j, etc. There are 3 key steps to run JBoss LogManager in a standalone Java Application:

  • Add relevant libraries(both JBoss LogManager and bridging libraries)
  • Specify the alternate log manager as a system property(-Djava.util.logging.manager=org.jboss.logmanager.LogManager)
  • Specify a logging configuration properties

Teiid LogManager represents the interface to a single logging framework that is easily accessible by any component. Using the LogManager, a component can quickly submit a log message, and can rely upon the LogManager to determine

  • whether that message is to be recorded or discarded
  • where to send any recorded messages

Teiid LogManager default use jdk logging framework, so if replace JDK logging system LogManager with JBoss LogManager, then use JBoss LogManager's bridge feature, it's easy to use many logging frameworks within Teiid Embedded.        

Logging with JBoss Logging

//coming soon

Logging with Log4j

//coming soon

Stop watching space | Change email notification preferences
View Online | View Changes | Add Comment