Raised This Month: $ Target: $400
 0% 

Is it possible for hlds to have a single log file per day ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dark-Master
Member
Join Date: Jul 2008
Location: Bangkok, Thailand
Old 01-11-2009 , 11:04   Is it possible for hlds to have a single log file per day ?
Reply With Quote #1

Like the topic said.......my servers are generating more than 100 log files/day. I just keep them for psychostats log updating, if there's anyway to have a single log file per day. Then it'll be easier for log files back up and management for ranking restoration if anything failed.
__________________
Admins vs Players?
Dark-Master is offline
lucius
Senior Member
Join Date: Aug 2007
Location: Netherlands
Old 01-11-2009 , 11:18   Re: Is it possible for hlds to have a single log file per day ?
Reply With Quote #2

Certainly.
Look at your core.ini file.

Code:
; Logging mode
; 0 - no logging
; 1 - one logfile / day
; 2 - one logfile / map
; 3 - HL Logs
amxx_logging    1
__________________
"Computer games don't affect kids, I mean if Pac Man affected us as kids, we'd all be running around in dark rooms, munching pills and listening to repetitive electronic music." Marcus Brigstock
lucius is offline
Send a message via MSN to lucius
Dark-Master
Member
Join Date: Jul 2008
Location: Bangkok, Thailand
Old 01-11-2009 , 11:24   Re: Is it possible for hlds to have a single log file per day ?
Reply With Quote #3

Is that for amxmodx logging ? and it's already "1"

I wanted one for HLDS.

Anyway, thx for try to help !
__________________
Admins vs Players?
Dark-Master is offline
Dark-Master
Member
Join Date: Jul 2008
Location: Bangkok, Thailand
Old 01-11-2009 , 23:32   Re: Is it possible for hlds to have a single log file per day ?
Reply With Quote #4

I solved this, use sv_log_onefile "1" to tell hlds to create only one log file per server session. After you start/restart server, server will create a new logfile and it'll be the only one until the server shutdown or crashes.

To have a daily log, I use task scheduler to "exit" my server daily and write some autorestart batch file.
__________________
Admins vs Players?
Dark-Master is offline
Reply



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 02:10.


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