Questions tagged [pantheios]

Pantheios is an open source logging API for C and C++

Pantheios is type-safe, extensible and high-performance logging API with a number of different back-ends for writing to files, syslog, standard streams, or via another logging library.

44 questions
0
votes
1 answer

Pantheios for Android with NDK

How do I build Pantheios with the Android NDK for use with my JNI code on Windows? I've written a custom back-end that uses the Android Logging API, but I don't know how to get the library itself to build.
Adi Shavit
  • 16,743
  • 5
  • 67
  • 137
0
votes
1 answer

Pantheios: create a new log file when too large

I want to make it so when Pantheios has written 1GB of data to a file, it will stop filling that file and create a new one and use that. I believe this is called Log rolling and I'm not sure how to go about doing it. To be clear I'm not asking for…
Katianie
  • 589
  • 1
  • 9
  • 38
0
votes
1 answer

Pantheios write to extenal file

I looked around and I couldn't find the answer to how exactly to do this. I am trying to use Pantheios for logging and I want to write to an external file (otherwise whats the point). I am following one of the examples provided but It doesn't seem…
Katianie
  • 589
  • 1
  • 9
  • 38
0
votes
1 answer

Where to specify STLSoft path when building pantheios

I am trying to build pantheios using nmake however I get the following message Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. makefile(18) : fatal error U1050: STLSOFT…
MistyD
  • 16,373
  • 40
  • 138
  • 240
0
votes
1 answer

"undefined reference to 'pantheios_log_3_no_test'"

I'm having trouble linking with Pantheios on Linux with gcc4.6 with the following error: In function `pantheios::internal::log_dispatch_3(int, unsigned int, char const*, unsigned int, char const*, unsigned int, char…
Adi Shavit
  • 16,743
  • 5
  • 67
  • 137
0
votes
1 answer

Concurrent writes to log file with pantheios from multiple processes

Anyone knows if pantheios supports concurrent writing to log file from multiple processes . If I start two instances of my program, then nothing is written to the log file. Should I set some parameter in the library so this can work, or it is just…
user152508
  • 3,053
  • 8
  • 38
  • 58
0
votes
1 answer

How to change permissions on Pantheios log files

I am using Pantheios as my logging sweet. The process using it is currently owned by root and the log file it creates does not create it with read permissions for all users: -rwxr-x---, 1 root root process.log How can I force the creation of the…
0
votes
2 answers

Does pantheios catch segfault?

I'm using the pantheios log library in C++, i didn't find if pantheios can catch a segfault, and then, force to print the buffer data before exiting. I can catch the segfault, but i didn't found a way to eventually print the buffer that contain my…
Tristan Piron
  • 63
  • 1
  • 8
0
votes
1 answer

Pantheios and boost::thread

I am having some trouble using the pantheios logging library with boost::threads. It seems that if I use any pantheios logging before creating the thread, I will get a segfault. For example, the following would work: thread_ = new…
Andrew Lee
  • 2,543
  • 3
  • 20
  • 31
0
votes
0 answers

Undefined reference to `pantheios_init`

I'm trying to use pantheios, I read this tutorial -> http://binglongx.wordpress.com/2010/08/30/pantheios-logging-library-installation-and-use/ The make build and make test are ok, I got a lot of "success" But when i try to include this files, i got…
Tristan Piron
  • 63
  • 1
  • 8
0
votes
1 answer

Pantheios not logging into one file with MFC app comprise (one exe + two DLLs)

I have got an MFC app comprised of one exe and two DLLs. The exe calls functions from those two DLLs. Now I am trying to add some logging by using the Pantheios logging lib. What I want to achieve: The exe and the two DLLs are all logging to the…
RoundPi
  • 5,819
  • 7
  • 49
  • 75
0
votes
1 answer

I know pantheios is thread-safe but is it interprocess safe?

I know pantheios is thread-safe & I have used it fine but is it interprocess safe ? Meaning could different module(differnt exes) logging to the same logging file safely at the same time? If so do I need to set up any special setting for it ? BTW…
RoundPi
  • 5,819
  • 7
  • 49
  • 75
0
votes
1 answer

First-chance exception with Pantheios

My app was running fine until I tried to debug it with the Application Verifier. After that I started getting "First-chance exception... : An invalid handle was specified" and the issue seems to be in the "bailout.c" file in Pantheios: hFile =…
chikuba
  • 4,229
  • 6
  • 43
  • 75
0
votes
1 answer

Pantheios Date/Time in log file name

I'm using Pantheios in my application and I'd like to generate a new log file each hour. I've seen the blog entry that explains how to add the date and time (http://blog.pantheios.org/2010/10/pantheios-101-beta-197-released-befile.html) using, for…
user399540
  • 269
  • 1
  • 4
  • 7
1 2
3