Community
Participate
Working Groups
Provide static/rules log file parser to import Java Logging XML log files. The Java Logging implementation of JSR-047 provide a formatter to convert LogRecords to XML. Since Hyades provides support for Java Logging (see org.eclipse.hyades.logging.java14), we should provide a static/rules log file parser to map Log Record XML fragments to Common Base Events using the mapping in the org.eclipse.hyades.logging.java14.XmlFormatter. Below is the DTD for the JSR-047 formatter: <!-- DTD used by the java.util.logging.XMLFormatter --> <!-- This provides an XML formatted log message. --> <!-- The document type is "log" which consists of a sequence of record elements --> <!ELEMENT log (record*)> <!-- Each logging call is described by a record element. --> <!ELEMENT record (date, millis, sequence, logger?, level, class?, method?, thread?, message, key?, catalog?, param*, exception?)> <!-- Date and time when LogRecord was created in ISO 8601 format --> <!ELEMENT date (#PCDATA)> <!-- Time when LogRecord was created in milliseconds since midnight January 1st, 1970, UTC. --> <!ELEMENT millis (#PCDATA)> <!-- Unique sequence number within source VM. --> <!ELEMENT sequence (#PCDATA)> <!-- Name of source Logger object. --> <!ELEMENT logger (#PCDATA)> <!-- Logging level, may be either one of the constant names from java.util.logging.Constants (such as "SEVERE" or "WARNING") or an integer value such as "20". --> <!ELEMENT level (#PCDATA)> <!-- Fully qualified name of class that issued logging call, e.g. "javax.marsupial.Wombat". --> <!ELEMENT class (#PCDATA)> <!-- Name of method that issued logging call. It may be either an unqualified method name such as "fred" or it may include argument type information in parenthesis, for example "fred(int,String)". --> <!ELEMENT method (#PCDATA)> <!-- Integer thread ID. --> <!ELEMENT thread (#PCDATA)> <!-- The message element contains the text string of a log message. --> <!ELEMENT message (#PCDATA)> <!-- If the message string was localized, the key element provides the original localization message key. --> <!ELEMENT key (#PCDATA)> <!-- If the message string was localized, the catalog element provides the logger's localization resource bundle name. --> <!ELEMENT catalog (#PCDATA)> <!-- If the message string was localized, each of the param elements provides the String value (obtained using Object.toString()) of the corresponding LogRecord parameter. --> <!ELEMENT param (#PCDATA)> <!-- An exception consists of an optional message string followed by a series of StackFrames. Exception elements are used for Java exceptions and other java Throwables. --> <!ELEMENT exception (message?, frame+)> <!-- A frame describes one line in a Throwable backtrace. --> <!ELEMENT frame (class, method, line?)> <!-- an integer line number within a class's source file. --> <!ELEMENT line (#PCDATA)>
Can't contain work in 4.0
Theme: Appealing to the Broader Community
Changing Version/Target to 4.0 because it is one of the features committed for 4.0. You can see the official feature list here: http://eclipse.org/tptp/home/project_info/featureplans/features.php?source=All&project=All&release=4.0&file=TPTPFeatures_4.xml
Created attachment 18247 [details] Sample adapter file. NOTE: The enclosed sample adapter file does not strictly follow the mapping in org.eclipse.hyades.logging.java14.XmlFormatter and does not include support for the following elements: -key -catalog -param -exception
Submitting to the 4.1 "Active Review" list, which can be read here: http://dev.eclipse.org/viewcvs/indextools.cgi/~checkout~/hyades-home/docs/unapproveddrafts/project%20info/plans/3+/TPTPFeatures.html
Deferring from 4.1 as per the official 4.1 enhancement plan. http://eclipse.org/tptp/home/project_info/featureplans/features.php?source=All&project=All&release=4.1&file=TPTPFeatures_4.1.xml
Created attachment 29858 [details] Sample log file #1.
Created attachment 29859 [details] Sample log file #2.
Created attachment 29860 [details] Sample adapter file #1.
Created attachment 29861 [details] Sample adapter file #2.
Created attachment 31216 [details] Patch
The attached Patch contains all the required modifications .i.e. the static parser, plugin entries etc.
Targetting this to 4.2 because Rohit has done the development work and attached a patch.
New logParser extension contributes properties that are shown in the Log Import Wizard and need to be translated.
Created attachment 31274 [details] Patch Patch generated by the "Create Patch" command
Cadidate for 4.2
Committed changes to TPTP Head CVS. The following new files were added to the org.eclipse.hyades.logging.parsers plugin: src/org.eclipse.hyades.logging.parsers.JavaLoggingXMLLogParser.java src/org.eclipse.hyades.logging.parsers.internal.util.JavaLoggingSAXHandler.java config/XML/Java/logging/v1.4/example.log config/XML/Java/logging/v1.4/run_example.bat config/XML/Java/logging/v1.4/run_example.sh config/XML/Java/logging/v1.4/static_example.adapter config/XML/Java/logging/v1.4/static.adapter The following files were changed: src/org.eclipse.hyades.logging.parsers.Parser.java src/org.eclipse.hyades.logging.parsers.ParserConstants.java src/org.eclipse.hyades.logging.parsers.ParserUtilities.java plugin.xml - logParser and logParserSet extensions were added for this parser plugin.properties
Verified in the TPTP-4.2.0-200602281515 driver.