Thread: Looking for a Logging class

  1. #1
    Registered User
    Join Date
    Dec 2015
    Posts
    112

    Looking for a Logging class

    I'm looking to use a logging class with a license that allows its free use.

    I have looked at Easylogging, GitHub - easylogging/easyloggingpp: Single header only C++ logging library. It is extremely light-weight, robust, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc., and Dr Dobbs Logger, A Lightweight Logger for C++ | Dr Dobb's.

    I'm looking just log instrument calls, threads opening/closing, warnings, exceptions, etc. in a multi-threaded environment. I plan to mostly just want to put things into a text file. So, from what I gather a simple logger should handle all my needs.

    Any suggestions?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,163
    So what is wrong with either of those solutions you posted?

    You could just strip out any fluff you don't want.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2015
    Posts
    112
    Nothing per se, other than are they battle tested logger or are there others that are aside from using something like boost?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,163
    To be honest, logging functionality is something simple enough that I roll my own as I go.

    If it works, go with one or the other.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logging onto server
    By osal in forum C# Programming
    Replies: 2
    Last Post: 08-10-2005, 09:52 AM
  2. logging problem
    By zach0616 in forum Windows Programming
    Replies: 0
    Last Post: 07-21-2005, 04:50 PM
  3. Logging out
    By arjunajay in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 06-29-2005, 05:36 AM
  4. IP logging
    By cruxis in forum Networking/Device Communication
    Replies: 5
    Last Post: 10-05-2004, 04:31 AM
  5. Logging IP's
    By DanMan in forum C++ Programming
    Replies: 2
    Last Post: 10-16-2001, 03:32 PM

Tags for this Thread