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

C++ Run time Linker error (liblog4cpp.so.5) Eclipse

When I try to build and run the application I wrote from the Eclipse IDE, I am getting an error: "error while loading shared libraries: liblog4cpp.so.5: cannot open shared object file: No such file or directory". No compilation errors. But if I…
0
votes
0 answers

Trouble understanding how to store an instance of a log4cpp logger in a class

This question might get downvoted because its overly simple - but I am not sure of the pattern I am supposed to be following for these kinds of objects. I would like to store an instance of a log4cpp logger in a class so I only need to instantiate…
CL40
  • 579
  • 1
  • 5
  • 12
0
votes
1 answer

MSB3073: The command "mc :VCEnd" exited with code 1

I am trying to compile log4cpp_x86 in visual studio 2019, but it gives me the error as below, I tried to change the location of the project from D: to C:, but still problem persist, and also I unmarked the folder as ReadOnly but it also doesn't…
chirag pathak
  • 121
  • 1
  • 14
0
votes
0 answers

Does log4cpp takes care of heap fragmentations issue?

I develop on windows 64bit with VS2015. I used a custom logger but it suffered from heap fragmentations. I found log4cpp library. According to the source code it uses std::ostringstream internally. My questions: I think my main question is can I…
theateist
  • 13,879
  • 17
  • 69
  • 109
0
votes
0 answers

Undefined reference to log4cpp (GENIE generator installation error message)

I got some error message while installing GENIE generator. I am using : ubuntu 18.0.4 gcc 7.3.0 ROOT v6.14.04 gsl v1.1 pythia6 v6.4.28 LHAPDF v5.9.1 log4cpp v1.1.3-1 libxml2 v2.9.2 Path setting and Configure setting…
0
votes
1 answer

Log4cpp Naming Collision for 'DEBUG' detected.

Issue When compiling my project, I get an error with the log4cpp files. The error is the following : /usr/include/log4cpp/Priority.hh:49:2: erreur: #error Naming collision for 'DEBUG' detected. Please read the FAQ for a workaround. The file The…
Clovel
  • 58
  • 10
0
votes
1 answer

Configuring log4cpp Logging level Priority

In an application we are using log4cpp-0.3.5rc3 for logging. The application is installed on linux devices. There is a bug in application and I want to set the log level of application to debug but I don't find anyway to do it on the remote device.…
Govan
  • 2,079
  • 4
  • 31
  • 53
0
votes
1 answer

SWIG tcl : undefined symbol error for log4cpp wrapper

I am new in log4cpp and swig wrapper. I am trying to write an interface for simple logging using log4cpp. I have installed log4cpp and swig in my Ubuntu machine. log4cpp.cpp: #include…
Avi
  • 310
  • 2
  • 4
  • 16
0
votes
1 answer

How can I solve the following problems in log4cpp?

I'm trying to compile log4cpp in visual studio 2008 but I'm getting some errors like these: Error 26 error C2664: 'ReportEventW' : cannot convert parameter 8 from 'const char *[1]' to 'LPCWSTR *'…
0
votes
1 answer

how to set configuration of log4cpp for visual studio 2008

i want to use log4cpp library in my code for logging. But,for windows platform i dont know how to configure the library. I am using Visual Studio 2008. Any help will be appreciated.
sonu gupta
  • 473
  • 8
  • 21
0
votes
1 answer

Building Log4cpp with Autotools: pthreads not found

community, I downloaded the Log4cpp source package form http://log4cpp.sourceforge.net/ and have problems building this library. To do it, I opened my cygwin-bash.exe, navigated to the root of the source package and typed ./configure. I get a lot of…
user172501
  • 332
  • 2
  • 11
0
votes
1 answer

Projects using Log4cpp library

I'm looking for a few projects that are using log4cpp for logging. Unfortunately I couldn't find any good examples of this library. Now I have a simple working example of it but I need some more complex(at least for me ;-) ) examples like how to use…
J.Javan
  • 813
  • 8
  • 9
0
votes
1 answer

log4cpp link unresolved external symbol

I'm trying to use log4cpp in my MSVC project. I downloaded log4cpp, and opened its msvc10\msvc10.sln file. I'm using Visual Studio 2012 (msvc11), so it prompted me to update log4cpp's projects. I did and everything seemed to go smoothly. Then I…
Jeff M
  • 2,492
  • 3
  • 22
  • 38
0
votes
1 answer

log4cpp and link error

log4cppLIB.lib(Appender.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in HtmlHelper.obj I have got this error message while trying to compile my program with log4cpp After downloading…
0
votes
1 answer

compiling log4cpp with custom toolchain

I am using log4cpp in our project. As we need to support various distributions of Linux, I have built a custom tool chain to build our project. Since my project is built with a custom tool chain, should I also build log4cpp with the same tool…
Ravi Chandra
  • 677
  • 12
  • 24