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

How do I send log4cplus appender output to a memory buffer?

I'm writing a logger that works for both managed and unmanaged code so I'm using log4cplus under the Test Driven Development (TDD) paradigm with Visual Studio 2013 Unmanaged Code Unit Tests under Test Explorer. Trouble is, I can't figure out how to…
empty
  • 5,194
  • 3
  • 32
  • 58
0
votes
1 answer

log4cplus cannot find AppenderFactory

I regularly use log4cplus, but I have encountered a new problem. I have a windows application which uses a dll (LoadLibrary) They are built on different compilers, but use dlls with the same name (including log4cplus.dll) also built on different…
Kenny Ostrom
  • 5,639
  • 2
  • 21
  • 30
0
votes
1 answer

Linker error - Undefined symbols

Greeting I've download and compiled log4cplus in VS2013 (1.2.0-rc3) . Compilation was fine (both debug and release) I've tried to use it in my code but I get lots of link errors, nothing I tried didn't remove them. I'm using the same includes from…
M.H.
  • 223
  • 3
  • 10
  • 23
0
votes
1 answer

PowerShell log filter function buffering output

My application uses log4cplus for logging. When I launch it in CMD or PowerShell, logging is ok, line by line. I decided to add small filtering function in PS, to make the output colorful. # Simplified version function ColoredOutput { process {…
Werolik
  • 923
  • 1
  • 9
  • 23
0
votes
1 answer

log4cplus - flush file before writing in it

My need is quite simple: with log4cplus, I'd like to be able to write a log in a log file and to flush the log file everytime before I write in it. This way, while I run my application, I will only have one single line in my log file. I've tryed the…
Julien Greard
  • 969
  • 1
  • 12
  • 32
0
votes
0 answers

Failure linking when using an extra library

When I build a simple C++ program with glog library (Google's logging library which is not used in the code), I get "undefined reference" errors. When I remove the -lglog from the build command, the link succeeds. Notice that the library that I…
DavidS
  • 2,160
  • 1
  • 19
  • 22
0
votes
1 answer

Log4cplus apis crashes in multithreading environment

I have written a simple program to check the ability of log4cplus apis to work perfectly in multithreading environment but when I run, it crashes all the time. Please give some, why it is happening. I decided to use log4cplus apis because most of…
user3356106
  • 31
  • 1
  • 1
  • 5
0
votes
0 answers

Using Log4cplus for C++, logging is paused when 3rd party method is called and log file is truncated

When 3rd party method is called, i get the below error. Looks like there is problem with the file handle when 3rd party function is called. Later, logging starts after 1 or 2 secs. 07/22/14 12:00:22 [5944] DEBUG log4cplus:ERROR file is not open :…
Madhu
  • 1
0
votes
1 answer

Logging from log4Cplus to Log4j

I would like to use Log4xx (Log4j & log4Cplus) as logging api which runs on a C++ and also on a Java client, which send all logs to a log4j (java) server. http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SocketAppender.html A…
user1824915
  • 11
  • 1
  • 4
0
votes
1 answer

log4cplus use in android application

I have integreted the log4cplus in my android application. Because I am a newbie in android platform, i have some problems. In win32 platform , the fileappender will put the log file in the exe directory ,but in the android virtual device , I can't…
KHacker
  • 31
  • 6
0
votes
1 answer

Error linking personal library which uses log4cplus

I have a weird problem trying to link a simple code which use a personal library which uses lib4cplus. The file with the main code is so easy and doesn't use log4cplus. I only use lib4cplus into the library. The library compiles correctly but when i…
Jorge Vega Sánchez
  • 7,430
  • 14
  • 55
  • 77
0
votes
1 answer

how is the thread name set in log4cplus?

I'm evaluating log4cplus for a multi threaded C++ application on linux. The TTCCLayout and the PatternLayout allow the thread name to be displayed. In my tests there was never a name but just a meaningless number. I'm not using the thread class of…
LeSpocky
  • 489
  • 1
  • 6
  • 16
0
votes
2 answers

How to reduce the size of static library of log4cplus

I tried log4cplus. It is quite handy and meet our requirement. The only problem of it is it is too big. After compiling, the static library of it is about 11M big on Linux(64bit). Is it possible reduce the size of its static library by specifying…
Janus.Le
  • 241
  • 4
  • 12
0
votes
2 answers

Is there a standard Autoconf macro for log4cplus?

I am considering using log4cplus in a project built with the GNU Autotools. For other library dependencies (such as boost) I've been able to find reasonable canonical M4 macros to test for those dependencies. After a bit of looking I'm still unable…
phs
  • 10,687
  • 4
  • 58
  • 84
-1
votes
2 answers

log4cplus in VC++

How I can add log4cplus Framework to an existing project under VC++ ? When i try to do it I receive linker errors. I don't how to fix it. Thanks herzl
herzl shemuelian
  • 3,346
  • 8
  • 34
  • 49
1 2 3
9
10