Raised This Month: $32 Target: $400
 8% 

How to disable logs in /logs dir?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-14-2022 , 17:19   How to disable logs in /logs dir?
Reply With Quote #1

Hi,

can I prevent creating logs in {root}/left4dead/logs dir somehow (for optimization purposes)?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-14-2022 , 17:26   Re: How to disable logs in /logs dir?
Reply With Quote #2

I turn all logs off, add these convars in cfg/autoexec.cfg (server executes this cfg before server.cfg )

PHP Code:
log off                                   //Creates a logfile (on | off)
sv_logecho 0                             //default 0; Echo log information to the console.
sv_logfile 0                             //default 1; Log server information in the log file.
sv_log_onefile 0                         //default 0; Log server information to only one file.
sv_logbans 0                             //default 0; Log server bans in the server logs.
sv_logflush 0                            //default 0; Flush the log files to disk on each write (slow).
sv_logsdir logs                          //Folder in the game directory where server logs will be stored. 
__________________

Last edited by HarryPotter; 11-14-2022 at 17:30.
HarryPotter is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-14-2022 , 17:29   Re: How to disable logs in /logs dir?
Reply With Quote #3

maybe the "log" cvar.

PHP Code:
log                                      cmd      :                  : Enables logging to fileconsole, and udp on off 
"log off"

At least on my server doesn't generate files at {root}/left4dead/logs folder

In my sv console, typing "log" displays:

Code:
log
Usage:  log < on | off >
not currently logging
__________________
Marttt is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-14-2022 , 17:58   Re: How to disable logs in /logs dir?
Reply With Quote #4

Nice, merci!
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Reply


Thread Tools
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

Forum Jump


All times are GMT -4. The time now is 15:39.


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