Questions tagged [log4cplus]

log4cplus is a C++ logging library.

log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration.

It is modelled after the Java log4j API.

More info: Project page

136 questions
1
vote
1 answer

log4cplus file cannot create directory administrative privileges

I am trying to install Log4Cplus using Cmake. First I downloaded log4cplus into a directory called 3rdparty git clone https://github.com/log4cplus/log4cplus.git --recursive Later in the common CMakeLists.txt I did the…
gringo
  • 373
  • 2
  • 4
  • 15
1
vote
1 answer

Log4cplus:ERROR No appenders could be found for logger

I am working on a Swing app that uses native code. Each time I run my project, I get the error message: log4cplus:ERROR No appenders could be found for logger. log4cplus:ERROR Please initialize the log4cplus system properly. Since logging for…
Ojonugwa Jude Ochalifu
  • 26,627
  • 26
  • 120
  • 132
1
vote
1 answer

Log4cplus DailyRollingFileAppender MaxBackupIndex clarification

I am struggling to understand the purpose and meaning of DailyRollingFileAppender MaxBackupIndex property in the Log4cplus configuration file. As explained in the API documentation: "This property limits how many backup files are kept per single…
N.avraham
  • 333
  • 2
  • 15
1
vote
2 answers

SDL does not show its window if I use a logging library

I'm trying to use log4cplus in conjunction with SDL to make a little graphic application. I'm using minGW and Eclipse CDT on windows. My problem is that whenever I use the library, my SDL window is not shown. Instead I get this on the console [New…
David R.
  • 11
  • 3
1
vote
0 answers

log4cplus can't detected parameters' format warning

I use log4cplus-1.1.2 built with g++ 4.9.2 and installed at /usr/local to handle logs on Debian 8. When I use distcc to compile my code, it prints so many format warning which NOT detected by g++ with the same compile option before! I checked the…
sfzhang
  • 669
  • 9
  • 18
1
vote
1 answer

Log4Cplus loading configuration file

I can't figure out how to initialize and load configuration file of log4cplus. Does anyone give me hints ? Thanks in advance. K.
Kattabomane
  • 124
  • 11
1
vote
1 answer

log4cplus: crash on Logger::shutdown on Windows

When I call log4cplus::Logger::shutdown(); it throws an exception Invalid address specified to RtlFreeHeap( 02BF0000, 02B71170 ) on deconstructors of log4cplus's classes. I'm using log4cpp 1.2.x (from current 1.2.x branch) and Visual Studio 2010…
fireandfuel
  • 732
  • 1
  • 9
  • 22
1
vote
1 answer

Syslog rotation using log4cplus appender MaxFileSize and MaxBackupIndex

I have below config, which seems to have no effect on the rotation of the…
JacekG
  • 13
  • 5
1
vote
1 answer

log4cplusud.lib missing when building with VisualStudio

i already have a complete VS Solution (that is working on other systems) and i am trying to get it to build on my computer aswell. The program is using log4cplus to (obviously) log - i already included the needed files, but when building VS tells…
sgtdroelf
  • 15
  • 6
1
vote
0 answers

Isleadbyte Error?

I am trying to run a program in debug mode and using log4cplus to print some message to file. It's running OK in the first seconds. But suddenly interrupt at _ASSERTE(isleadbyte(_dbcsBuffer(fh))); I don't know what happened. Why? Here is part of…
seafeawea
  • 11
  • 2
1
vote
1 answer

How to get filename in log4cplus in VC++

I want to get current file name, but I don't know how to get it. For example: In config.properties file: log4cplus.rootLogger=TRACE, OTS_H,…
1
vote
1 answer

log4cplus unresolved external symbol LNK2001

I am trying to use log4cplus as a logger in my project. I have download and compiled log4cplus in VS2013 both 'Debug_Unicode' and 'Release_Unicode' successfully (project compiles successfully in Release and Debug). In my 'Project…
Merav Kochavi
  • 4,223
  • 2
  • 32
  • 37
1
vote
1 answer

Log4cplus: DailyRollingFileAppender rolls the file whenever we close and open the appender again

As per the documentation, DailyRollingFileAppender will do the file rolling at midnight of each day. But, if we close the appender and open the new appender for same log file, then it roll over the existing file and creates the new one. My…
1
vote
1 answer

Different files for different levels

I am creating a parser and I want to output the Debug and the WARN messages to different files. The code is very straightforward: logger(log4cplus::Logger::getInstance(LOG4CPLUS_TEXT("TParser"))); LOG4CPLUS_WARN/DEBUG(logger, "XYZ"); I tried to…
Lefsler
  • 1,738
  • 6
  • 26
  • 46
1
vote
1 answer

Thread Local Storage Not supported for this Architecture ios

i am Compiling log4cplus Library for armv7, it Gives me Error Thread Local Storage is Not Supported for Current Device(__thread is Not Supported) i have Searched this EveryWhere But Not Getting Exact Answer. i have Two Doubts Regarding TLS on…
Nishant
  • 136
  • 12