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
8
votes
1 answer

Is Log4cplus really so slow?

I've been testing three options for my logging subsystem in C++. One is Log4cplus, one is Pantheios and the last one is a simple logging library that we have written ourselves. Log4cplus has been much slower than the other two. Here are the results…
RezaPlusPlus
  • 545
  • 1
  • 8
  • 18
8
votes
4 answers

C++ Logging Library Setup

I've been trying for about 2 weeks now to get a logging library to work with. I've tried Log4cxx, Log4cpp, log4cplus and boost.log. The problem isn't that none of these work for me, it's that I can't figure out how to get them to work at all. I…
Shenlong55
  • 91
  • 1
  • 3
6
votes
7 answers

C++ Project compiles as static lib, fails (linker error) as dynamic lib. why?

I've a VS2008 native C++ project, that I wish to compile as a DLL. It only references one external library (log4cplus.lib), and uses its functions. (also uses log4cplus's .h files , naturally). When I try to compile my project as a static library,…
Roey
  • 391
  • 1
  • 8
  • 14
6
votes
2 answers

Help configuring the log4cplus configuration file (properties file)

I created a new Logger object like this: log4cplus::Logger m_WebAccessLogger; //a class member Then in the constructor initialization list I do: m_WebAccessLogger(log4cplus::Logger::getInstance("WebAccess") This works fine, it logs as expected. …
cchampion
  • 7,607
  • 11
  • 41
  • 51
5
votes
0 answers

Building and using Log4cplus with CMake

community, I have the following problem with building and using the Log4cplus library with Embarcadero. First, I download the library from http://sourceforge.net/p/log4cplus/wiki/Home/, then I navigate to a Directory where I want to build my…
mathgenius
  • 165
  • 1
  • 13
5
votes
1 answer

log4cplus:ERROR in python when calling for tkinter file dialog

I've written a little program in python that pulls data out of an .xls spreadsheet using xlrd with tkinter file dialogue boxes for opening/saving the files. Earlier today, the program was running fine, but I recently installed Autocad Electrical…
Seth Koberg
  • 965
  • 2
  • 9
  • 15
5
votes
1 answer

Access violation reading location - non-terminated string (unreadable memory)

I'm using log4cplus library and I can't get logging to work. I use this code: PropertyConfigurator::doConfigure(LOG4CPLUS_TEXT("log.properties")); Logger g_logger = Logger::getInstance(LOG4CPLUS_TEXT("mylogger")); LOG4CPLUS_WARN(g_logger,…
Piotr Chojnacki
  • 6,837
  • 5
  • 34
  • 65
5
votes
1 answer

log4cplus link errors when used in VS2012

I've download and compiled log4cplus in VS2012. Compilation was fine (both debug and release) I've tried to use it my code but I get 3 link errors, nothing I tried didn't remove them. I'm using the same includes from the log4cplus project, and the…
Dani
  • 14,639
  • 11
  • 62
  • 110
5
votes
1 answer

Why are duplicate messages being logged

I'm new to log4cplus. I have the following configuration: log4cplus.rootLogger=TRACE, STDOUT log4cplus.logger.zios.utl.Thread=DEBUG,…
DaveR
  • 1,295
  • 1
  • 13
  • 35
4
votes
1 answer

Exclude (or disable) log4cplus warnings when compiling or running a PyQT4 GUI app?

I built a little GUI app with QtDesigner in Python and I passed the app along to a few people in my team which are using Autodesk 360 + Autocad. My app use the QFileDialog command to get filenames, which is known to have a bug when Autodesk 360 is…
kaycee
  • 901
  • 1
  • 9
  • 35
4
votes
1 answer

How do I create a custom Layout for log4cplus

After searching for what feels far too long, I decided to ask this simple question on stackoverflow: How do I create a custom Layout for log4cplus (1.1.2)? The closest related question is How do I add a custom filter in log4cplus? where the author…
DragonTux
  • 732
  • 10
  • 22
4
votes
1 answer

log4cplus properties file changes are not being read runtime

Is there any configuration which helps in log4cplus picking dynamic changes? I am changing log4cplus properties on runtime and want log4cplus to pick those changes dynamically.
4
votes
1 answer

Stack around the variable was corrupted when using code from library

I'm using log4cplus library. When I build application, it compiles and runs properly (well, not quite properly since it's not logging anything, but that's the other issue), but when I close it, I'm getting this error: Run-Time Check Failure #2 -…
Piotr Chojnacki
  • 6,837
  • 5
  • 34
  • 65
4
votes
1 answer

How to print the local system time using log4cplus?

While choosing PatternLayout if I use %d{%m/%d/%y %H:%M:%S}, it will show the current date and time. The time is according to the UTC format. My requirement is to display the time accoring to local system time. Update: In timehelper.h there is one…
Ankit
  • 1,330
  • 2
  • 11
  • 16
4
votes
1 answer

Firebreath NPAPI Plugin How to Log

How to output log messages with an NPAPI plugin built with FireBreath in C++. The log should be available during development and test and/or in Debug builds. Modified: The FireBreath way to log is with Log4cplus, and I have attempted to implement…
David Manpearl
  • 12,362
  • 8
  • 55
  • 72
1
2 3
9 10