Print Page | Close Window

Log Files

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=27866
Printed Date: 02 April 2026 at 9:26am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Log Files
Posted By: slog
Subject: Log Files
Date Posted: 23 September 2009 at 6:20pm
Hi, log_files folder is empty, but i found another log foldr with some files on it. Do I have to activate some thing to start logging my users activities in the forum?

And after it starts, how can i read the log file? Is the some kind of interface to read and search thru these files?

Thanks,

slog



Replies:
Posted By: WebWiz-Bruce
Date Posted: 23 September 2009 at 6:33pm
Log files can be enabled by editing in notepad the file includes/setup_options_inc.asp where yous elect which options you want to be logged.

log files are then read by downloading them and reading them in a text editor.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: slog
Date Posted: 23 September 2009 at 6:57pm
Thanks Bruce. 

So you don't have any kind of interface to read and do serches on the log file in order for you to know if a user with the ip registered more than one user in you forum? 

Anyway, reading at the text editor is good enough for now.

Thanks


Posted By: slog
Date Posted: 23 September 2009 at 7:18pm
I just enabled it in the file, but no file was created at the log_files folder. I had some new posts created and nothing happened with the log. 

That is how my configuration is now:

'Logging
'Web Wiz Forums is able to create log files of actions, activity, and errors. However this WILL effect performance so be careful what you enable logging for.
'Logging requires that the folder storing log files has read, write, and modify permissions for the IUSR account in order for Web Wiz Forums to create and write to log files.
'SECURITY ALERT: MAKE SURE THAT YOU MOVE THE LOG FILE LOCATION TO A FOLDER NOT ACCESSIBLE TO THE PUBLIC.
Const blnLoggingEnabled = True 'Enable logging
Dim strLogFileLocation
strLogFileLocation = Server.MapPath("log_files") 'Default log file folder, change this to a folder outside your website root if you don't want logs files to be public

Const blnModeratorLogging = True 'Log the actions of moderators
Const blnErrorLogging = True 'Log error messages
Const blnNewRegistrationLogging = True 'Log new registrations

Const blnCreatePostLogging = True 'Log the creating of new topics and posts (Don't enable this on busy forums)
Const blnEditPostLogging = True 'Log the editing of topics and posts (Don't enable this on busy forums)
Const blnDeletePostLogging = True 'Log the deletion of topics and posts

One more thing. How do I use my files outside the root, can I send it to another server? I see that
strLogFileLocation = Server.MapPath("log_files")
tells where is my folder located, but what do I have to right there to send it to a folder outsite the root or to another server?

Thanks 


Posted By: 123Simples
Date Posted: 23 September 2009 at 7:37pm
You need to give read/write permissions to your log files folder
Most servers have the ability for you to set up a folder outside your wwwroot folder (this is the folder where files can be accessed via browsers)
Consult your server for your instructions on this


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: slog
Date Posted: 23 September 2009 at 10:37pm
Ok, thanks MrTWS. My forum is hosted at a Web Wiz Hosting account. The log_files is now working, I can see a file there, but still not knowing how to send my log files outside the root, my main concern is about the way to write it.

strLogFileLocation = Server.MapPath("log_files")

Here "log_files" is written like that, and it is at the same folder as the .asp file, but how do i do if I wanna use a folder outside the root?


Posted By: WebWiz-Bruce
Date Posted: 24 September 2009 at 10:30am
If you host the website with us then use the File Manager in your Control Panel to create a log_file folder above the wwwroot for that website and still using the File Manger click the padlock icon to set read and write permissions.

The page below gives details on setting read and write permissions from your control panel:-

http://www.webwiz.net/webhosting/support/dotnetpanel_setting_permissions.asp" rel="nofollow - Changing Read and Write Permissions for Files and Folders

Once this is done if the forum is in the wwroot folder you will use the following for the path in the setup_options_inc.asp file:-

strLogFileLocation = Server.MapPath("../log_files")


If the forum is located in a sub folder you may need to add in more ../ to get up above the wwwroot folder.

If you get stuck then fill in a support ticket and we will have someone set this up for you.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: slog
Date Posted: 24 September 2009 at 3:09pm
Thanks Bruce, the ../ is exactly what I needed to know. Thanks


Posted By: slog
Date Posted: 25 September 2009 at 1:44am
Can I keep my conversation about logging here at this topic?

Looking at the log configuration I realized that it doesn't log member profiles actions, like editions. Is there a way to include it?

In an old forum I used to visit, they had a problem of a possible invasion and someone was messing up with members account, they changed the password and the member had to ask the administrator to send a new one, cuz they also changed the user email. 

Later they found out that moderators and administrators passwords was changed also and whoever changed it made a mess in the foruns. Needless to say that, moderators and administrators were accused to be doing all that in the forum and were banned. If they knew who changed their passwords it would be avoided.


Posted By: WebWiz-Bruce
Date Posted: 25 September 2009 at 9:57am
Logging is still a new feature (in beta really) and still needs to be worked on. New features like what you mention will be added in time as well as a way to view the log files from within the admin area.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: slog
Date Posted: 25 September 2009 at 2:22pm
Thanks Bruce, that is a feature that can be very helpfull. 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net