Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++ Logging: Any recommendations?

C++ Logging: Any recommendations?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++javaapachecom
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gvanto
    wrote on last edited by
    #1

    I was wondering what people reckon a good way of logging in C++ would be? Coming from a java background, I very much like log4j's system: - it handles file output (and sizing) automatically - very configurable - easy to install and use in eclipse Now, I've come across two loggers for C++ which seem to be the C++ version of log4j: log4cxx (by apache) and log4cpp (by someone else: http://log4cpp.sourceforge.net/[^] ) OK, so first attempt at getting log4cxx working in Eclipse (running on kubuntu) was not fruitful: The apache website, nor anywwhere else has much info on getting log4cxx up and running in eclipse. (after installing log4cxx via "sudo aptitude install liblog4cxx9c2a" and including the header files in my c++ project in eclipse, it says it cant find the header files... i've searched and cant find them either !) I would so love to use log4cxx since it was built by Apache and probably works really well but I really dont want to waste hours again trying to get it to work in Eclipse (or anywwhere else for that matter). Same with log4cpp IF anyone knows of a good logging library / class which handles (log)file creation automatically and is easily used within eclipse, it would be much appreciated !!!! gvanto c++ logging newbie

    Find Your Dream Job in Australia, Free! http://www.WebCV.com.au

    D 1 Reply Last reply
    0
    • G gvanto

      I was wondering what people reckon a good way of logging in C++ would be? Coming from a java background, I very much like log4j's system: - it handles file output (and sizing) automatically - very configurable - easy to install and use in eclipse Now, I've come across two loggers for C++ which seem to be the C++ version of log4j: log4cxx (by apache) and log4cpp (by someone else: http://log4cpp.sourceforge.net/[^] ) OK, so first attempt at getting log4cxx working in Eclipse (running on kubuntu) was not fruitful: The apache website, nor anywwhere else has much info on getting log4cxx up and running in eclipse. (after installing log4cxx via "sudo aptitude install liblog4cxx9c2a" and including the header files in my c++ project in eclipse, it says it cant find the header files... i've searched and cant find them either !) I would so love to use log4cxx since it was built by Apache and probably works really well but I really dont want to waste hours again trying to get it to work in Eclipse (or anywwhere else for that matter). Same with log4cpp IF anyone knows of a good logging library / class which handles (log)file creation automatically and is easily used within eclipse, it would be much appreciated !!!! gvanto c++ logging newbie

      Find Your Dream Job in Australia, Free! http://www.WebCV.com.au

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      gvanto wrote:

      I was wondering what people reckon a good way of logging in C++ would be?

      How about Windows Event Log?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      G 1 Reply Last reply
      0
      • D David Crow

        gvanto wrote:

        I was wondering what people reckon a good way of logging in C++ would be?

        How about Windows Event Log?

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        G Offline
        G Offline
        gvanto
        wrote on last edited by
        #3

        Sorry guess I didn't mention: this is on a Linx (Kubuntu) machine ... cheers, gvanto

        Find Your Dream Development Job in Australia, Free! http://www.WebCV.com.au

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups