Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 01-23-2012, 04:26 AM   #1
Beta Member
 
Join Date: Jan 2012
Location: INDIA
Posts: 4
Default Help with LOG

Hi,

Can anyone tell me how to use a "notepad" and keep a LOG of usage of that same LOG file??

I mean, by using ".LOG" inside the notepad it will display the date and time every time i access it. So can i keep a record of these usages in that notepad... or any other notepad...
__________________

Jatin Shetty is offline   Reply With Quote
Old 01-23-2012, 11:34 AM   #2
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Help with LOG

Sorry, you'll have to explain what you're trying to do more clearly - are you trying to log each time anyone accesses a particular file?
__________________

__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 01-24-2012, 01:03 AM   #3
Beta Member
 
Join Date: Jan 2012
Location: INDIA
Posts: 4
Default Re: Help with LOG

Exactly.... Anyway u can do tat??
Jatin Shetty is offline   Reply With Quote
Old 01-24-2012, 08:34 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: Help with LOG

change the name or your text file from .txt to .log

then addition come with a date each time you open the file.

if you want to log access you'll need to look at folder access audition.
right click the file, select properties.
go to the security tab, click advanced then look at the auditing tab, (and this is only available on certain versions of windows.)

then you can log in the security log (event viewer) each time a file the file is read/accessed/changed, each time someone unauthorised attempts to open the file etc.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 05:26 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0