ERXPatternParser.JavaVMInfoPatternConverter Class Reference

Inherits org::apache::log4j::helpers::PatternConverter.

Collaboration diagram for ERXPatternParser.JavaVMInfoPatternConverter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

String convert (LoggingEvent event)

Package Functions

 JavaVMInfoPatternConverter (FormattingInfo formattingInfo, String format)

Private Attributes

boolean _constantsInitialized = false
ERXUnitAwareDecimalFormat _decimalFormatter
final NSDictionary _defaultLabels = null
NSMutableDictionary _jvmInfo
Runtime _runtime
String _template
ERXSimpleTemplateParser _templateParser


Detailed Description

The JavaVMInfoPatternConverter is useful for logging various info about the Java runtime and Virtual Machine that is running the application instance. See ERXPatternLayout for example/supported partterns.

Constructor & Destructor Documentation

JavaVMInfoPatternConverter ( FormattingInfo  formattingInfo,
String  format 
) [package]

Default package level constructor

Parameters:
formattingInfo current pattern formatting information
format string for the logging event format


Member Function Documentation

String convert ( LoggingEvent  event  ) 

Returns ...

... has not been created yet then "-" is logged.

Parameters:
event a given logging event
Returns:
the current application name


Member Data Documentation

boolean _constantsInitialized = false [private]

Flag to indicate if the constant values are set. The constant values are the part of application info that shouldn't change during the application's life span.

final NSDictionary _defaultLabels = null [private]

Holds the default labels for the values. Note that the template parser will put "-" for undefined values by defauilt.

Holds the values for the JavaVM info. Used by the template parser

Runtime _runtime [private]

String _template [private]

Template used by _templateParser

Template parser to format logging events


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:16 2012 for Project Wonder by  doxygen 1.5.8