RL03 Log4J Xml Reader (1.2) Reader


Outline

Log4j is a simple and flexible logging framework. The log4j package is designed so that these statements can remain in shipped code without incurring a heavy performance cost.

Platforms:
32/64bit 32/64bit 32/64bit
Requirements:
  • None
Known limitations:
  • None
Status:
  • Stable
Operations:
  • Load
Default Parameters:
  • None
Configuration:
  • Default reader configuration with modified parameters.
Features:
  • Log4J Xml V1.2


About Log4J

Log4J writes log events into an xml file like this:

	<log4j:event logger="org.apache.log4j.chainsaw.LogUI" timestamp="1392023194971" sequenceNumber="1" level="INFO" thread="AWT-EventQueue-0">
	<log4j:message><![CDATA[Using '' for auto-configuration]]></log4j:message>
	<log4j:properties>
	<log4j:data name="application" value="log"/>
	<log4j:data name="hostname" value="chainsaw"/>
	<log4j:data name="log4jid" value="1"/>
	</log4j:properties>
	</log4j:event>
	


Usage

The reader can be used to open workspace resources and together with resource adapters.



Configuration

You can modify the reader behavior under Preferences->impulse->Serializer->Log4J:

  • You may modify the default parameters (see "Default Parameters"); 
  • You may add a default serializer configurations and modify its parameters. Then you can select between multiple configurations (containing different parameter sets) when using the serializer.


Parse errors

The reader will provide a parse error message if the input can not be read. The message usually contains the error position, the reason for the failure and a stack trace.

If you can not resolve the problem (e.g. obvious format error in the input file), please send this message together with the input file to "This email address is being protected from spambots. You need JavaScript enabled to view it.".

	Reader: de.toem.impulse.serializer.xyz 
	Error at position: 4800
	Text at position: "o !.
	Up
	Uq
	Ur"
	Message: Invalid character
	Type: class de.toem.impulse.serializer.ParseException
	Stack trace: 
	
	de.toem.impulse.serializer.xyz.xyzReader.parse(XYZReader.java:459)
	de.toem.impulse.serializer.xyz.xyzReader.parse(xyzReader.java:363)
	de.toem.impulse.serializer.xyz.xyzReader.read(xyzReader.java:269)
	de.toem.impulse.serializer.xyz.xyzReader.read(xyzReader.java:237)
	de.toem.pattern.element.Element$1.execute(Element.java:1063)
	de.toem.eclipse.hooks.actives.EclipseActives$3.run(EclipseActives.java:73)
toem

technical software and tooling

Company

Contact Us

This email address is being protected from spambots. You need JavaScript enabled to view it.