Questions tagged [log4cpp]

A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations. It is modelled after the Java library log4j, staying as close to their API as is reasonable.

A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations, located at log4cpp.sourceforge.net. It is modelled after the prominent Log for Java library (log4j), staying as close to their API as is reasonable.

54 questions
0
votes
1 answer

^A & ^B characters when trying to configure log4cpp

When I am trying to configure the log4cpp which is cloned from the location Log4cpp CodeGit. I observe the ^A & ^B characters at the end of the #ifdef macros, due to which compilation is not going through. Steps I followed are 1) git clone…
Suman
  • 4,221
  • 7
  • 44
  • 64
0
votes
0 answers

log4cpp compile error in one project but not another

Note: I am new to c++. I had an existing solution with multiple projects that I was able to create a new project/.cpp file and include the .h file successfully(ie, compile and run the executable as expected) in one of the application's lower level…
user2415349
  • 5
  • 1
  • 5
0
votes
2 answers

log4cpp - no default constructor exists for log4cpp::AppenderSkeleton

I've recently linked log4cpp in my project and I tried making a class as such: class ConsoleAppenderSkeleton : public log4cpp::AppenderSkeleton { private: Console& console; public: ConsoleAppenderSkeleton(Console& console)…
Bugster
  • 1,552
  • 8
  • 34
  • 56
0
votes
1 answer

Log4cpp record log repeatly

I am using log4cpp to create a Log class, which is designed in the singleton mode. Here is my Log.h #include #include #include #include #include #include…
Fei Xue
  • 1,995
  • 5
  • 19
  • 29
0
votes
1 answer

undefined reference to function from log4cpp library

I have another problem ... I downloaded the log4cpp library and compiled it via Microsoft Visual Studio into a .lib-file. Now I want to link that library into a QT Project, but whenever I call a function, such as std::string initFileName =…
TheWieand
  • 253
  • 3
  • 18
0
votes
2 answers

Debug Assertion Fails When Trying to Write to Log4cpp Stream

I'm trying to enable logging with log4cpp in the following way. class Foo { private: log4cpp::Appender* _logAppender; log4cpp::Layout* _logAppenderLayout; } Foo::Foo() { _logAppender = new log4cpp::FileAppender("foo",…
Alex Wade
  • 659
  • 1
  • 7
  • 27
0
votes
1 answer

How to programmatically configure log4cpp?

Is it possible to programmatically configure log4cpp? I want to configure it as it would be configured by supplying the following config file. appender root basic console priority root DEBUG
benshort
  • 670
  • 8
  • 14
-1
votes
1 answer

log4cpp stops working properly after sometime

I have a log4cpp implementation in a multiple process environment . Logger is configured once during initialization and then is shared among forked processes which server http requests. During first minute or so , I see the logs rolls perfectly fine…
kaykay
  • 81
  • 1
  • 9
-3
votes
1 answer

Access violation writing location when using log4cpp

I successfully compiled log4cpp for Visual Studio 2005 (Debug-mode). And created a test console application. It links and compiled successfully. But when I start it in debug-mode, it throws an error: Unhandled exception at 0x772febc3 in…
linarcx
  • 116
  • 3
  • 17
1 2 3
4