9 Feb 2012 14:57
Re: Having trouble getting XMLSocketAppender to reconnect
RDX <romel_dutta <at> infosys.com>
2012-02-09 13:57:25 GMT
2012-02-09 13:57:25 GMT
Matthew Bingham <texbingham <at> gmail.com> writes:
>
> 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 calllogger_ = 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 ALLlog4cxx:
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 DEBUGlog4cxx: 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]
(Continue reading)
RSS Feed