Difference between revisions of "GVLog4JConfiguration"

From GreenVulcano Wiki
Jump to: navigation, search
({{GVESB}} Configuration)
(log4j:configuration)
Line 16: Line 16:
  
 
Authors: Chris Taylor, Ceki Gulcu.
 
Authors: Chris Taylor, Ceki Gulcu.
 +
 
Version: 1.2
 
Version: 1.2
  

Revision as of 13:02, 7 March 2012

GreenVulcano® ESB Configuration

The following table shows the GVLog4JConfiguration element's attributes:

Attribute Type Description
type fixed This attribute must assume the value module
name fixed This attribute must assume the value LOG4J

GVJavaScriptConfig contains the sub-elements:

log4j:configuration

Authors: Chris Taylor, Ceki Gulcu.

Version: 1.2

A configuration element consists of optional renderer elements, appender elements, categories and an optional root element.

The following table shows the log4j:configuration element's attributes:

Attribute Type Description
xmlns:log4j fixed This attribute must assume the value http://jakarta.apache.org/log4j/.
threshold optional The "threshold" attribute takes a level value such that all logging statements with a level equal or below this value are disabled.

The attribute's default value is: null. The attribute's admitted values are:

  • all
  • debug
  • info
  • warn
  • error
  • fatal
  • off
  • null
debug optional By default, debug attribute is "null", meaning that we not touch internal log4j logging settings.

Setting the "debug" attributes enable the printing of internal log4j logging statements. The attribute's default value is: null. The attribute's admitted values are:

  • true
  • false
  • null

Might contain the sub-elements:

renderer

renderer element allows the user to customize the conversion of message objects to String.

The following table shows the renderer element's attributes:

Attribute Type Description
renderedClass required
renderingClass required

appender

Appenders must have a name and a class. Appenders may contain an error handler, a layout, optional parameters and filters. They may also reference (or include) other appenders.

The following table shows the appender element's attributes:

Attribute Type Description
name required The attribute's value can't be null.
class required

Might contain the sub-elements:


root

If no priority element is specified, then the configurer MUST not touch the priority of root. The root category always exists and cannot be subclassed.

Might contain the following sub-elements:

param

The param Element is used by: appender, category, categoryFactory, errorHandler, filter, layout, level, priority and root.

The following table shows the param element's attributes:

Attribute Type Description
name required The attribute's value can't be null.
value required
priority

The priority class is org.apache.log4j.Level by default.

The priority Element is used by: category and root. The following table shows its attributes:

Attribute Type Description
class optional
value required

Contains the sub-element param.