C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-27-2009, 08:19 AM   #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.
Peter_APIIT is offline   Reply With Quote
Old 06-27-2009, 11:43 AM   #2
and the hat of sweating
 
Join Date: Aug 2007
Location: Toronto, ON
Posts: 3,119
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
cpjust is offline   Reply With Quote
Old 06-28-2009, 12:22 AM   #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.
Peter_APIIT is offline   Reply With Quote
Old 06-28-2009, 03:02 AM   #4
Registered User
 
Join Date: Dec 2006
Posts: 1,780
Huh? What function name?
cyberfish is offline   Reply With Quote
Old 06-28-2009, 07:41 AM   #5
Registered User
 
Join Date: Oct 2008
Posts: 10
Actually, i don't know how a simple System Logger look like.
Peter_APIIT is offline   Reply With Quote
Old 06-28-2009, 08:34 AM   #6
Registered User
 
Join Date: Dec 2006
Posts: 1,780
Great. Neither do we.
cyberfish is offline   Reply With Quote
Old 06-28-2009, 09:53 AM   #7
Registered User
 
Join Date: Oct 2006
Posts: 263
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.
Elkvis is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My new website joeprogrammer General Discussions 19 03-17-2006 07:38 PM
Cprog tutorial: Design Patterns maes C++ Programming 7 10-11-2004 01:41 AM
Tutorial review Prelude A Brief History of Cprogramming.com 11 03-22-2004 09:40 PM
Problem with tutorial (Vector class) OdyTHeBear C++ Programming 4 12-18-2002 02:49 PM
My DirectInput tutorial.... jdinger A Brief History of Cprogramming.com 1 06-18-2002 11:32 PM


All times are GMT -6. The time now is 05:55 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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