public class EventErrorLogger
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ERR_XML_ATTR_NULL |
protected static java.lang.String |
ERR_XML_ATTR_TYPE |
protected static java.lang.String |
ERR_XML_ENTRIES_ENTITY |
protected static java.lang.String |
ERR_XML_ERRCODE |
protected static java.lang.String |
ERR_XML_EX_CLASS |
protected static java.lang.String |
ERR_XML_EX_MESSAGE |
protected static java.lang.String |
ERR_XML_EX_STACK |
protected static java.lang.String |
ERR_XML_EXCEPTION |
protected static java.lang.String |
ERR_XML_FAILURE |
protected static java.lang.String |
ERR_XML_PARAM |
protected static java.lang.String |
ERR_XML_PARAMS |
protected static java.lang.String |
ERR_XML_ROOT |
protected static java.lang.String |
ERR_XML_SQL |
protected static java.lang.String |
ERR_XML_SQLSTATE |
protected static java.lang.String |
ERROR_ENTRIES_SUFFIX
the suffix used for the name of file where actual errors go that is built
up incrementally while the top-level error file just sources it to remain
well-formed
|
protected java.lang.String |
errorFile
file to write errors
|
protected java.io.OutputStream |
errorStream
the output stream associated with
errorFile |
protected javax.xml.stream.XMLStreamWriter |
errorWriter
XML writer used to dump errors to
errorFile |
protected static java.lang.String |
Gfxd_EVENT_ERROR_LOGGER |
protected org.slf4j.Logger |
logger2 |
| Constructor and Description |
|---|
EventErrorLogger(java.lang.String errorFileName) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getColumnAsString(java.sql.ResultSet rs,
int columnIndex,
int jdbcType)
Get the value of a column in current row in ResultSet as a string.
|
protected void |
indentInErrorXML(int level) |
protected void |
initErrorFile() |
void |
logError(Event event,
java.lang.Exception e) |
java.lang.String |
rollFileIfRequired(java.lang.String logfile,
org.slf4j.Logger logger)
If there is an existing file with given path, then try to roll it over with
a suffix like -01-01 in the name.
|
java.lang.String |
toString() |
protected void |
writeExceptionInErrorXML(java.lang.Exception sqle,
int indent,
int indentStep,
boolean printStack) |
protected void |
writeObjectInErrorXML(java.lang.String tag,
java.lang.Object o,
int indent) |
protected java.lang.String errorFile
protected java.io.OutputStream errorStream
errorFileprotected javax.xml.stream.XMLStreamWriter errorWriter
errorFileprotected static final java.lang.String ERROR_ENTRIES_SUFFIX
protected static final java.lang.String ERR_XML_ROOT
protected static final java.lang.String ERR_XML_ENTRIES_ENTITY
protected static final java.lang.String ERR_XML_FAILURE
protected static final java.lang.String ERR_XML_SQL
protected static final java.lang.String ERR_XML_PARAMS
protected static final java.lang.String ERR_XML_PARAM
protected static final java.lang.String ERR_XML_ATTR_TYPE
protected static final java.lang.String ERR_XML_ATTR_NULL
protected static final java.lang.String ERR_XML_EXCEPTION
protected static final java.lang.String ERR_XML_SQLSTATE
protected static final java.lang.String ERR_XML_ERRCODE
protected static final java.lang.String ERR_XML_EX_MESSAGE
protected static final java.lang.String ERR_XML_EX_CLASS
protected static final java.lang.String ERR_XML_EX_STACK
protected final org.slf4j.Logger logger2
protected static final java.lang.String Gfxd_EVENT_ERROR_LOGGER
public java.lang.String rollFileIfRequired(java.lang.String logfile,
org.slf4j.Logger logger)
protected void initErrorFile()
throws java.lang.Exception
java.lang.Exceptionpublic void logError(Event event, java.lang.Exception e) throws java.lang.Exception
java.lang.Exceptionprotected void indentInErrorXML(int level)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected void writeExceptionInErrorXML(java.lang.Exception sqle,
int indent,
int indentStep,
boolean printStack)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected void writeObjectInErrorXML(java.lang.String tag,
java.lang.Object o,
int indent)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic static final java.lang.String getColumnAsString(java.sql.ResultSet rs,
int columnIndex,
int jdbcType)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.