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
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
5
votes
3 answers

viability of c++ logging library for asynchronous capturing of high throughput data?

I am working with a real time system written in C++. We are looking to use either boost or pantheios for logging. The system has some standard logging requirements which I'm confident can be met by either framework, but in addition we want to be…
user623257
  • 83
  • 2
  • 7
5
votes
4 answers

How to log with pantheios to a file?

I tried the exemple from pantheios to log to a file but can't manage to make it work. Messages are correctly displayed in the console but the log file isn't created. I tried to change severity levels since I saw that thread, but no one…
Vincent
  • 51
  • 1
  • 2
5
votes
1 answer

How to create a fixed back-end DLL for Pantheios logger

I have a VS 2005 solution that has numerous projects (most are DLL, 1 EXE which is a CppUnit project) and I am trying to add a fixed back-end DLL for the Pantheios logger so that I can use a single logger instance throughout the solution. Following…
ossandcad
  • 778
  • 5
  • 18
4
votes
2 answers

How to include the calling class and line number in the log using Pantheios?

I just started using Pantheios and it feels really like a great library for logging! Maybe even the greatest one for C++! Congratulations to the author! However, I could not find neither in the documentation nor in all the forum posts anything about…
m_pGladiator
  • 8,462
  • 7
  • 43
  • 61
4
votes
1 answer

Custom front end and back end with Pantheios logging

Apologies if I'm missing something really obvious, but I'm trying to understand how to write a custom front end and back end with Pantheios. (I'm using it from C++, not C.) I can follow the purposes of the initialisation functions (I think) but I'm…
JamieH
  • 1,257
  • 3
  • 12
  • 19
4
votes
2 answers

Use Pantheios logging framework from a dll

Im a trying to use pantheios logging framework from inside a c++ dll. I have successfully built the dll and it executes through my test application (C++ MFC Application). I have used implicit linking with the following includes: #include…
Joakim Karlsson
  • 1,112
  • 1
  • 15
  • 27
3
votes
1 answer

Beginner: How to use the Pantheios logging API library as a replacement for #ifdef DEBUG? How to def SEVLEVEL?

i want to log a lot of events in a dynamically search-algorithm (e.g. information about convergence to global optimum). This logging should have a switch to turn it off/on. Now there are a lot of possibilities to achieve that: implement a…
sascha
  • 32,238
  • 6
  • 68
  • 110
2
votes
1 answer

Cpp Pantheios Log Library, Debug Assertion Failed Error

I have a cpp project, a cpp cli project and a c# win forms project. I use pantheios log library in my cpp native project. When i try to write log, i take this error : Here is my codes : Log.hpp #ifndef INCLUDE_LOG_HPP #define…
Seçkin Durgay
  • 2,758
  • 4
  • 27
  • 36
2
votes
1 answer

Unable to compile pantheios 1.0.0-beta216 with stlsoft-1.9.124 on windows 7 64bit

I'm having trouble compiling pantheios 1.0.0-beta2016 with stlsoft-1.9.124 on windows 7 64bit. The first error I had was D:\Libraries\stlsoft-1.9.124\include\winstl/winstl.h(257) : fatal error C1189: #error : Compiling with WIN64 defined and _WIN64…
David Vitoux
  • 124
  • 1
  • 6
2
votes
0 answers

Connect Pantheios logging in a DLL to the main application's logging

Here's the situation: I'm working on a MFC application and want to integrate some logging capabilities into it. I did some research and settled on Pantheios since it seems to be regarded as the best logging API out there. I had no problems getting…
dwyatt
  • 111
  • 1
  • 6
1
vote
3 answers

How to avoid multiple definition of PANTHEIOS_FE_PROCESS_IDENTITY?

I'm working on a project with multiple files and I need logging in each of it. In order to compile a file I need the following: /* Define the stock front-end process identity, so that it links when using * fe.N, fe.simple, etc.…
Burkhard
  • 14,596
  • 22
  • 87
  • 108
1
vote
1 answer

Configuring Pantheios logging library

Is it possible to configure Pantheios logging library from outside such as from xml or properties file?
Novalis
  • 2,265
  • 6
  • 39
  • 63
1
vote
2 answers

How to deny creating empty log file with be.file in Pantheios?

1)be.file backend has a feature - messages added before _be_file_set_filename() are not lost and will be appended to log later. 2)_be_file_set_filename opens file immediately => if no entries was added, emty file will be created Question: how to…
1
vote
1 answer

Having different configurations on Pantheios

This question is regarding logging in C++ with Pantheios library. In my application, I need to have these different loggers: One that logs the critical messages to logFile1 and to Console One that logs the warning messages to logFile2 One…
RezaPlusPlus
  • 545
  • 1
  • 8
  • 18
1
2 3