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

Daily Console Log


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xaphan
SourceMod Donor
Join Date: Jun 2008
Old 11-15-2009 , 18:22   Daily Console Log
Reply With Quote #1

Anyway of renaming the console.log daily?
Maybe this would need to be an extension?
111309_console.log
111409_console.log
111509_console.log
__________________
Xaphan is offline
El Curioso
Member
Join Date: Nov 2013
Location: Spain
Old 02-04-2014 , 06:22   Re: Daily Console Log
Reply With Quote #2

Sorry for reanimating this old thread, but I am also very curious about a solution.

You can set the console-output-name via the command "con_logfile": e.g. "con_logfile tf2_console.log"
So the output would be written allways to this file. To change it manually everyday from 020414_console.log to 020514_console.log... ect. is possible, but no practical solution.

Should better be a server-command executed once a day e.g.
ServerCommand("con_logfile %s_console.log",DATE_OF_TODAY);

Unfortunately I am no programmer , but maybe itīs a start.
Any help would be appreciated very much
El Curioso is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-04-2014 , 12:47   Re: Daily Console Log
Reply With Quote #3

Delete plugin when not one to use it anymore
Spoiler

and use con_timestamp 1


*edit
seems con_logfile cvar is annoying, once you have set file name or empty value "", it still continue logging. Can't disable.
Unless you set destination folder what not exist "no/file.log", it not create file anymore.

Last edited by Bacardi; 02-04-2014 at 12:50.
Bacardi is offline
El Curioso
Member
Join Date: Nov 2013
Location: Spain
Old 02-06-2014 , 18:21   Re: Daily Console Log
Reply With Quote #4

Wow Bacardi, thank you so much! That did the trick.
It is working: 2014-02-06_console.log

The cvar "con_timestamp" does work on cs:s but is blocked/hidden in cs:go.
The above log is from cs:go, so it seems to work perfect nonetheless.
El Curioso is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-07-2014 , 01:55   Re: Daily Console Log
Reply With Quote #5

Ok, You Can check cvar typing
Help con_timestamp
If see any output of it, use
Sm_cvar con_timestamp 1
Bacardi is offline
El Curioso
Member
Join Date: Nov 2013
Location: Spain
Old 02-07-2014 , 07:05   Re: Daily Console Log
Reply With Quote #6

CS:S - output: "con_timestamp" = "1" - Prefix console.log entries with timestamps

CS:GO - output: Unknown command "con_timestamp"
CS:GO - output: [SM] Value of cvar "con_timestamp": "0"
CS:GO - output: "con_logfile" = "2014-02-07_console.log" ( def. "" )

Seems to work perfect.

I can change Sm_cvar con_timestamp to 1, (does not hurt ) but I donīt understand the reason why it is necessary - since it seems to work flawlessly.
El Curioso is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-07-2014 , 07:31   Re: Daily Console Log
Reply With Quote #7

you get "date" in every console output line in log file.
Bacardi is offline
El Curioso
Member
Join Date: Nov 2013
Location: Spain
Old 02-07-2014 , 10:23   Re: Daily Console Log
Reply With Quote #8

Ok, perfect, thanks for explanation!
El Curioso 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 19:56.


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