183 questions
0
votes
1
answer
51
views
Log4cxx Casting log4cxx::helpers::FileInputStreamPtr To log4cxx::helpers::InputStreamPtr
I am attempting to cast a log4cxx::helpers::FileInputStreamPtr to log4cxx::helpers::InputStreamPtr. On Windows using the Visual Studio 2019 compiler, this works without issue. My current ...
1
vote
1
answer
56
views
Apache-log4cxx will not compile with gcc-14 on MacOS Sequoia: init not declared
I am trying to build log4cxx from source on MacOS (Sequoia, 15.3.2). I am using gcc-14.2.0 installed via homebrew. I have built apr and apr-util from source using the same compiler.
I have downloaded ...
0
votes
1
answer
60
views
Porting old log4cxx code: synchronized missing
I have httpd server and I have used log4cxx for logging. But the log4cxx I was using was very old and I need to upgrade it now. When I tried to do it, I saw so many files have been removed.
For ...
1
vote
1
answer
113
views
Building apr-util for log4cxx using cmake throws errors
I am trying to build log4cxx (on Windows) library for logging runtime info in my c++ project. As part of the build I have to build also two dependency libraries called apr and apr-util. I have ...
0
votes
1
answer
189
views
Log4Cxx Blocks Calling Thread While Logging?
I'm using log4cxx::rolling::RollingFileAppender() for logging in my C++ application, without any asynchronous appenders. If I invoke logging from the main thread, will the main thread be blocked until ...
1
vote
1
answer
104
views
The size of the generated library significantly increased after referencing -llog in the C++ code
I compiled my C++ code into a dynamic library using the NDK. Initially, my code was linked with the log4 dynamic library and used -llog to include the Android logging library. However, later on, I ...
0
votes
2
answers
260
views
log4cxx undefined reference to `log4cxx::Logger::getLogger(char const*)'
I've got 2, according to me, identical cpp projects under Ubuntu Netbeans.
LoggerTestProject
CppApplication2
In the mainfiles of both I've integrated the following code:
The result of compiling the ...
0
votes
1
answer
268
views
Log4cxx producing error in log4cxx/logger.h
I have a Qt program that I am updating has an inadequate logging system (which logs to syslog) so I wish to use Log4cxx (I am new to Log4cxx). I have tried some of the examples on the webpage (https://...
0
votes
1
answer
217
views
log4cxx add filter to specific logger programmatically
In Log4cxx I know that its possible to add filter to appender.
But what if I want to add filter only to specific logger?
LoggerPtr logger = Logger::getLogger("loggerName");
AppenderPtr ...
2
votes
1
answer
696
views
Failed to process package 'rosconsole':
I have installed ROS noetic on raspian buster but it get gives error when this command is implemented as per the procedure mentioned in
http://wiki.ros.org/noetic/Installation/Source
./src/catkin/bin/...
0
votes
1
answer
345
views
How can I get the logging directory of a RollingFileAppender from log4cxx?
I'm using XML to configure log4cxx. The appender is a RollingFileAppender that outputs to a folder like yyyy/MM/dd/HHmm, and I need to know what that folder is at the end of the program.
I can't get ...
1
vote
0
answers
66
views
is log4cxx supports http or https appenders?
In log4j 2 documents I am found http appender details to support http.
But I am not able to find any information on http appender in log4cxx.
is there any workaround for log4cxx to support http or ...
0
votes
0
answers
106
views
log4cxx logger modification in docker container
I have a c++ application that uses log4cxx for logging. log4cxx configuration will be done via XML file where the logging level and different loggers can be enabled and disabled. with installation ...
0
votes
1
answer
4k
views
Log4cxx Error. Please initialize the log4cxx system properly
I´m running an application on a red hat image of docker. I have some .sh files but when executing them on the logs files I see this error:
Log4cxx Please initialize the log4cxx system properly.
...
0
votes
1
answer
105
views
Writing custom log4cxx policy, linker can't find log4cxx::helper::Object::cast
I'm using log4cxx 0.10.0, and I need to roll over either hourly or when the file size gets too large. My initial attempt was to configure rollingPolicy to be TimeBasedRollingPolicy and triggerPolicy ...