Raised This Month: $ Target: $400
 0% 

log_to_file vs log_amx


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SilverSquirrl
New Member
Join Date: Aug 2005
Old 08-26-2005 , 14:01   log_to_file vs log_amx
Reply With Quote #1

Ok, I'm trying to write to a log file. I have sucessfully done that that using the following code:

Code:
log_to_file("admin_bans.txt","%s TempBanned %s<%d> for %s minutes Due to: %s",name,name2,userid2,minutes,reason) and log_to_file("Bans/admin_bans.txt","%s TempBanned %s<%d> for %s minutes Due to: %s",name,name2,userid2,minutes,reason)

What I'm trying to do is get the file to a specific folder above the server folder.

Code:
log_to_file("c:/SERVERS/Bans/admin_bans.txt","%s TempBanned %s<%d> for %s minutes Due to: %s",name,name2,userid2,minutes,reason)

In mysearch to find an answer on the forums, I have found out that amxx doesn't want us to use log_to_file anymore and say to use log_amx. Well, that doesn't even give an option for a different file.

Is there any way to write to a log file the preceeds the server in its path???

(If anyone is wondering, I run 5 servers and I would like to log every ban that my admins do to 1 location vs having to check each server's log.)
SilverSquirrl is offline
 



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

Forum Jump


All times are GMT -4. The time now is 14:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode