PILLUTLAAVINASH / google-enterprise-connector-manager

Automatically exported from code.google.com/p/google-enterprise-connector-manager
0 stars 0 forks source link

XmlFormatter requires format parameter #162

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In logging.properties, if you specify the XmlFormatter as the log formatter as 
follows:

java.util.logging.FileHandler.formatter = 
com.google.enterprise.connector.logging.XmlFormatter

but don't specify the XmlFormatter.format property, XmlFormatter throws a Null 
Pointer 
Exception.
If no format is specified, it should use the default, 
java.util.logging.XMLFormatter style layout.

As a work-around, specify the XmlFormatter.format property in 
logging.properties as a non-
empty value.

For Log4j-compatible output that can be used in Chainsaw log analyzer:
com.google.enterprise.connector.logging.XmlFormatter.format=log4j

For the default java.util.logging style output:
com.google.enterprise.connector.logging.XmlFormatter.format=default

Original issue reported on code.google.com by Brett.Mi...@gmail.com on 19 Jun 2009 at 9:41

GoogleCodeExporter commented 8 years ago
Fixed 19 June 2009 in Connector Manager trunk revision r2140
Merged onto Connector Manager 2.x branch as revision r2141

Original comment by Brett.Mi...@gmail.com on 20 Jun 2009 at 12:21

GoogleCodeExporter commented 8 years ago

Original comment by Brett.Mi...@gmail.com on 29 Oct 2009 at 10:51