Raised This Month: $12 Target: $400
 3% 

[L4D2] con_logfile not supported?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
midnight9
Senior Member
Join Date: Nov 2012
Old 05-23-2018 , 05:18   [L4D2] con_logfile not supported?
Reply With Quote #1

Hello, Im trying to use con_logfile to save console output to a file but it doesnt seem to work. Is this even works in L4D2?

I have this in my server.cfg
Code:
sm_cvar con_logfile "Server01.txt"
sm_cvar con_timestamp "1"

Last edited by midnight9; 05-23-2018 at 05:19.
midnight9 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-23-2018 , 08:06   Re: [L4D2] con_logfile not supported?
Reply With Quote #2

Hmm not sure. In start-up command line I use -condebug which saves to /left4dead2/console.log <- same place you find addons and cfg etc. You searched the entire server for the file? Doubt it affects but maybe remove .txt?

Code:
-conclearlog 	Clears the console.log text file on start.
-condebug 	Logs all console output into the console.log text file.
Other cvars/cmds:
Code:
con_enable                               : 0        : , "a"            : Allows the console to be activated.
con_filter_enable                        : 0        : , "launcher"     : Filters console output based on the setting of con_filter_text. 1 filters completely, 2 displays filtered text brighter than other text.
con_filter_text                          :          : , "launcher"     : Text with which to filter console spew. Set con_filter_enable 1 or 2 to activate.
con_filter_text_out                      :          : , "launcher"     : Text with which to filter OUT of console spew. Set con_filter_enable 1 or 2 to activate.
con_logfile                              :          : , "launcher"     : Console output gets written to this file
con_notifytime                           : 8        : , "launcher"     : How long to display recent console text to the upper part of the game window
con_nprint_bgalpha                       : 50       : , "launcher"     : Con_NPrint background alpha.
con_nprint_bgborder                      : 5        : , "launcher"     : Con_NPrint border size.
con_timestamp                            : 0        : , "launcher"     : Prefix console.log entries with timestamps
con_trace                                : 0        : , "launcher"     : Print console text to low level printout.
condump                                  : cmd      : , "cl"           : dump the text currently in the console to condumpXX.log
__________________
Silvers is offline
midnight9
Senior Member
Join Date: Nov 2012
Old 05-23-2018 , 08:30   Re: [L4D2] con_logfile not supported?
Reply With Quote #3

Im using -condebug at the moment, although i run multiple instances of same files so all servers log into the same console.log file, thats why im trying to make individual file for each server.

I've tried con_enable but it looks like it doesnt exist in l4d2, also tried to remove .txt and even tried .log instead but no luck.
midnight9 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-23-2018 , 12:49   Re: [L4D2] con_logfile not supported?
Reply With Quote #4

Tried without sm_cvar infront?
__________________
Silvers is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 05-23-2018 , 12:54   Re: [L4D2] con_logfile not supported?
Reply With Quote #5

works here. needs sm_cvar and might need 'log on' aswell.
Visual77 is offline
midnight9
Senior Member
Join Date: Nov 2012
Old 05-23-2018 , 13:33   Re: [L4D2] con_logfile not supported?
Reply With Quote #6

Quote:
Originally Posted by Visual77 View Post
works here. needs sm_cvar and might need 'log on' aswell.
Yes i have
Code:
log on
sm_cvar con_logfile "Server01.txt"
sm_cvar con_timestamp "1"
Should it be .txt or .log? Do i need to use -condebug as well?
midnight9 is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 05-23-2018 , 14:58   Re: [L4D2] con_logfile not supported?
Reply With Quote #7

Quote:
Originally Posted by midnight9 View Post
Yes i have
Code:
log on
sm_cvar con_logfile "Server01.txt"
sm_cvar con_timestamp "1"
Should it be .txt or .log? Do i need to use -condebug as well?
No you shouldn't need condebug. It don't matter. The result of sm_cvar con_logfile "Server01.txt" gave me a lowercase 'server01.txt'

Host permission/write to file issues?

Last edited by Visual77; 05-23-2018 at 14:58.
Visual77 is offline
midnight9
Senior Member
Join Date: Nov 2012
Old 05-23-2018 , 15:57   Re: [L4D2] con_logfile not supported?
Reply With Quote #8

This is what im getting as the result,so it looks ok.
Code:
sm_cvar con_logfile
[SM] Value of cvar "con_logfile": "Server01.txt"
I assume the file should be located in left4dead2? The permission for this folder is set to 775 (linux machine). Am I missing something else?
midnight9 is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 05-26-2018 , 04:01   Re: [L4D2] con_logfile not supported?
Reply With Quote #9

Quote:
Originally Posted by midnight9 View Post
This is what im getting as the result,so it looks ok.
Code:
sm_cvar con_logfile
[SM] Value of cvar "con_logfile": "Server01.txt"
I assume the file should be located in left4dead2? The permission for this folder is set to 775 (linux machine). Am I missing something else?
root folder yes. could your host be falsyfying the permission data? have you tried on local install? can you upload files to the root folder. can you write to files in the root folder?

Last edited by Visual77; 05-26-2018 at 04:05.
Visual77 is offline
midnight9
Senior Member
Join Date: Nov 2012
Old 05-26-2018 , 09:02   Re: [L4D2] con_logfile not supported?
Reply With Quote #10

Its dedicated machine so i have root access. Yes i can upload files etc. I've tried changing the path sm_cvar con_logfile "addons/sourcemod/logs/Server01.txt"
Still nothing...

Last edited by midnight9; 05-26-2018 at 09:02.
midnight9 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 16:56.


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