I have been using XMLSocketAppender without much issue, except for when the
connection is lost log4cxx is never reconnecting.  I have ReconnectionDelay
set to 1000 and when the connection goes I see log4cxx display "log4cxx:
Detected problem with connection: log4cxx: IO Exception : status code =
730053"  This is with a 64 bit build with VS2008.  I configure log4cxx from
an xml file and in the the source just call

logger_ = Logger::getLogger("Server");
LOG4CXX_DEBUG(logger_,"Server logging");


Any suggestions?  Below is the log4cxx debug information.  Thanks.

log4cxx: Threshold ="".
log4cxx: Level value for root is [all].
log4cxx: OptionConverter::toLevel: no class name specified, level=[all]
log4cxx: root level set to ALL
log4cxx: Retreiving an instance of Logger.
log4cxx: Setting [Server] additivity to [true].
log4cxx: Level value for Server is [debug].
log4cxx: OptionConverter::toLevel: no class name specified, level=[debug]
log4cxx: Server level set to DEBUG
log4cxx: Class name: [org.apache.log4j.net.XMLSocketAppender]
log4cxx: Setting option name=[Port], value=[12345]
log4cxx: Setting option name=[RemoteHost], value=[192.168.1.102]
log4cxx: Setting option name=[ReconnectionDelay], value=[1000]
log4cxx: Setting option name=[LocationInfo], value=[true]
log4cxx: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4cxx: Setting option name=[ConversionPattern], value=[%d %-5p [%c] %m%n]
log4cxx: Adding appender named [MyXmlAppenderFormated] to logger [Server].
log4cxx: Retreiving an instance of Logger.
log4cxx: Setting [multicastListener] additivity to [true].
log4cxx: Level value for multicastListener is [warn].
log4cxx: OptionConverter::toLevel: no class name specified, level=[warn]
log4cxx: multicastListener level set to WARN
log4cxx: Detected problem with connection:
log4cxx: IO Exception : status code = 730053

Reply via email to