473,775 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking for a good C++ logging library

I'm looking for a good logging library that is easy to use, and well
documented.
I've already looked at log4cxx, log4cplus, and Log4cpp.

Either I couldn't find the documentation, or I couldn't figure out how
to get them to work with my code.

Does any one know of a good logging library that is easy to use, easy
to add to an existing project, and that is well documented.

Mar 18 '06 #1
3 12090
bi******@rock.c om wrote:
I'm looking for a good logging library that is easy to use, and well
documented.
I've already looked at log4cxx, log4cplus, and Log4cpp.

Either I couldn't find the documentation, or I couldn't figure out how
to get them to work with my code.

Does any one know of a good logging library that is easy to use, easy
to add to an existing project, and that is well documented.


I recommend EzLogger
http://axter.com/ezlogger

EzLogger is more flexible than those libraries you posted, and it's
very easy to add to your project, since it requires no *.cpp files.
It's documentation is fair.
I'm not aware of any C++ logging libraries that have excellent
documentation.
IMHO, the EzLogger documentation is better than any other C++ logging
library that I've reviewed.

---------------------------------------------------------------------------*-------------

David Maisonave
http://axter.com
---------------------------------------------------------------------------*-------------

Mar 18 '06 #2

EzLogger is more flexible than those libraries you posted, and it's
very easy to add to your project, since it requires no *.cpp files.
It's documentation is fair.
I'm not aware of any C++ logging libraries that have excellent
documentation.
IMHO, the EzLogger documentation is better than any other C++ logging
library that I've reviewed.

Granted, the machine I'm posting from is in need of a compiler. That
said, perhaps I may have overlooked something on the site. I see
EzLogger gives the file/function names etc, nonetheless, does EzLogger
offer a similar capability to inform me of:
1. When I entered/exited a function.
2. Something akin to the GNU PRETTY_FUNCTION macro. Yes/yes
PRETTY_FUNCTION is non-standard but ..

When dealing with logging libraries I realize we could spend all day
trying to accomodate user requirements but from my perspective, I
suspect those were the only two things ( based on a cursory look) that
I might have been missing.

Mar 18 '06 #3
ma740988 wrote:

EzLogger is more flexible than those libraries you posted, and it's
very easy to add to your project, since it requires no *.cpp files.
It's documentation is fair.
I'm not aware of any C++ logging libraries that have excellent
documentation.
IMHO, the EzLogger documentation is better than any other C++ logging
library that I've reviewed.

Granted, the machine I'm posting from is in need of a compiler. That
said, perhaps I may have overlooked something on the site. I see
EzLogger gives the file/function names etc, nonetheless, does EzLogger
offer a similar capability to inform me of:
1. When I entered/exited a function.
2. Something akin to the GNU PRETTY_FUNCTION macro. Yes/yes
PRETTY_FUNCTION is non-standard but ..

When dealing with logging libraries I realize we could spend all day
trying to accomodate user requirements but from my perspective, I
suspect those were the only two things ( based on a cursory look) that
I might have been missing.


EzLogger support the __FUNCTION__ macro which is used in VC++ 7.x, 8.0,
G++ 3.x and 4.x.

Mar 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2296
by: Tero Saarni | last post by:
I'm using Logging in my library module for producing trace log of certain events. For being more useful these log entries should be associated with the filename and line number of *users* code that was issuing the library call. This is similar to what Logging itself does since it doesn't print "logging/__init__.py" as value of %(filename) but instead it prints users file where logging method (info, error...) was called. What would be...
10
3303
by: Thomas Heller | last post by:
I'm about to add some logging calls to a library I have. How can I prevent that the script that uses the library prints 'No handlers could be found for logger "comtypes.client"' when the script runs? I would like to setup the logging so that there is no logging when nothing is configured, and no warning messages are printed. Thomas
11
1476
by: cj | last post by:
Public Class MyStringLogger Private Shared m_loglock As New Object Public Shared Sub Write(ByVal str As String) SyncLock (m_loglock) Dim sw As New System.io.StreamWriter("c:\validate.log", True) sw.WriteLine(str) sw.Close() End SyncLock
3
2602
by: Dick | last post by:
How do I integrating ASP.NET Tracing with the Enterprise Library Logging Application Block? I guess this should be possible and in a similar way to the way ASP.NET Tracing is integrated with System.Diagnostics Tracing as described in http://msdn2.microsoft.com/en-us/library/b0ectfxd(VS.80).aspx. But I would have thought this is something most ASP developers using the Logging Application Block would want to do and therefore I expected to...
0
1865
by: robert | last post by:
As more and more python packages are starting to use the bloomy (Java-ish) 'logging' module in a mood of responsibility and as I am not overly happy with the current "thickener" style of usage, I want to put this comment and a alternative most simple default framework for discussion. Maybe there are more Python users which like to see that imported (managed) logging issue more down-to-earth and flexible ? ... Vinay Sajip wrote: >...
2
1861
by: Tod Olson | last post by:
Anyone have advice for importing the logging module using MacPython 2.4.3? MacPython installs the logging module in: /Library/Frameworks/Python.framework/Versions/2.4/lib/logging/ There's an __init__.py there and everything, but this directory is not in sys.path. I add it to sys.path as follows: /Library/Frameworks/Python.framework/Versions/2.4/lib/logging
9
1955
by: Rasika WIJAYARATNE | last post by:
Hi guys, Please check this out: http://rkwcoding.blogspot.com/2007/07/error-logging.html
0
1653
by: =?Utf-8?B?U2hyaWthbnQgTW9yZQ==?= | last post by:
Using enterprise library's 3.1 Logging Application Block , how can i get the custom source name in the windows event log.When ever i am logging an error in windows event log , it gives the source name as Enterprise Library Logging.I want my custom source name instead of Enterprise Library Logging.Also how can i get the username and category also, through Logging Application Block.
4
3399
by: Alexandru Mosoi | last post by:
why doesn't logging throw any exception when it should? how do I configure logging to throw exceptions? .... logging.fatal('asdf %d', '123') .... except: .... print 'this line is never printed' .... Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/logging/__init__.py", line 744, in emit
0
9622
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10268
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10048
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9916
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4017
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.