Difference between revisions of "GVLog4JConfiguration"

From GreenVulcano Wiki
Jump to: navigation, search
(log4j:configuration)
(renderer)
Line 57: Line 57:
 
====renderer====
 
====renderer====
  
renderer element allows the user to customize the conversion of message objects to String.
+
Renderer element allows the user to customize the conversion of message objects to String.
  
The following table shows the renderer element's attributes:
+
The following table shows its attributes:
 
{|class="gvtable"
 
{|class="gvtable"
 
! Attribute !! Type !! Description
 
! Attribute !! Type !! Description

Revision as of 13:03, 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 its 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.