public class EventErrorLogger extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ERR_XML_ATTR_NULL |
protected static String |
ERR_XML_ATTR_TYPE |
protected static String |
ERR_XML_ENTRIES_ENTITY |
protected static String |
ERR_XML_ERRCODE |
protected static String |
ERR_XML_EX_CLASS |
protected static String |
ERR_XML_EX_MESSAGE |
protected static String |
ERR_XML_EX_STACK |
protected static String |
ERR_XML_EXCEPTION |
protected static String |
ERR_XML_FAILURE |
protected static String |
ERR_XML_PARAM |
protected static String |
ERR_XML_PARAMS |
protected static String |
ERR_XML_ROOT |
protected static String |
ERR_XML_SQL |
protected static String |
ERR_XML_SQLSTATE |
protected static 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 String |
errorFile
file to write errors
|
protected OutputStream |
errorStream
the output stream associated with
errorFile |
protected XMLStreamWriter |
errorWriter
XML writer used to dump errors to
errorFile |
protected static String |
Gfxd_EVENT_ERROR_LOGGER |
protected org.slf4j.Logger |
logger2 |
| Constructor and Description |
|---|
EventErrorLogger(String errorFileName) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getColumnAsString(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,
Exception e) |
String |
rollFileIfRequired(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.
|
String |
toString() |
protected void |
writeExceptionInErrorXML(Exception sqle,
int indent,
int indentStep,
boolean printStack) |
protected void |
writeObjectInErrorXML(String tag,
Object o,
int indent) |
protected String errorFile
protected OutputStream errorStream
errorFileprotected XMLStreamWriter errorWriter
errorFileprotected static final String ERROR_ENTRIES_SUFFIX
protected static final String ERR_XML_ROOT
protected static final String ERR_XML_ENTRIES_ENTITY
protected static final String ERR_XML_FAILURE
protected static final String ERR_XML_SQL
protected static final String ERR_XML_PARAMS
protected static final String ERR_XML_PARAM
protected static final String ERR_XML_ATTR_TYPE
protected static final String ERR_XML_ATTR_NULL
protected static final String ERR_XML_EXCEPTION
protected static final String ERR_XML_SQLSTATE
protected static final String ERR_XML_ERRCODE
protected static final String ERR_XML_EX_MESSAGE
protected static final String ERR_XML_EX_CLASS
protected static final String ERR_XML_EX_STACK
protected final org.slf4j.Logger logger2
protected static final String Gfxd_EVENT_ERROR_LOGGER
public EventErrorLogger(String errorFileName)
public String rollFileIfRequired(String logfile, org.slf4j.Logger logger)
protected void indentInErrorXML(int level)
throws XMLStreamException
XMLStreamExceptionprotected void writeExceptionInErrorXML(Exception sqle, int indent, int indentStep, boolean printStack) throws XMLStreamException
XMLStreamExceptionprotected void writeObjectInErrorXML(String tag, Object o, int indent) throws XMLStreamException
XMLStreamExceptionpublic static final String getColumnAsString(ResultSet rs, int columnIndex, int jdbcType) throws SQLException
SQLExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.