C++ Logger Tutorial

This is a discussion on C++ Logger Tutorial within the C++ Programming forums, part of the General Programming Boards category; Hello to all, i written a simple staff personnel system that able to login and serialize data to file. Therefore, ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    10

    Angry C++ Logger Tutorial

    Hello to all, i written a simple staff personnel system that able to login and serialize data to file.

    Therefore, i need to logging each login session success and failure and whenever a add, delete or edit the file, a logging feature to the file. Besides that, program logging also function i looking for.

    Please point me to simple tutorial. I don't want any log4J variant library. I need to write a simple one from scratch.


    Thanks.

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    What's wrong with just opening a file and writing to it?
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    10
    Yes, i just want to use basic C++ approach as program logger but how to record the function name into the file also.

  4. #4
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    Huh? What function name?

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    10
    Actually, i don't know how a simple System Logger look like.

  6. #6
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    Great. Neither do we.

  7. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    2,399
    Quote Originally Posted by Peter_APIIT View Post
    Actually, i don't know how a simple System Logger look like.
    it will probably work very much like the file access portion of the program you already have, if in fact you have already written it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 06:38 PM
  2. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 01:41 AM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  4. Problem with tutorial (Vector class)
    By OdyTHeBear in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2002, 01:49 PM
  5. My DirectInput tutorial....
    By jdinger in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-18-2002, 11:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21