SRCDS Steam group


Outputting Console to a text file
#1
Hi guys, does anyone know if its possible to output the text in The Server console to a text file?

Thanks in advance

Beerboy
Reply
#2
you can use the log functions of the server or you can write a plugin... logs are easier Toungue

Variables:
Code:
log on                //Creates a logfile (Enable= on Disable= off)
sv_logfile 1            //Log server information in the log file.
sv_logsdir F:\SRCDS\cstrike\logs    //Folder in the game directory where server logs will be stored.

sv_logecho 0            //Echo log information to the console.

sv_log_onefile 1        //Log server information to only one file.
sv_logbans 1            //Log server bans in the server logs.
sv_logdownloadlist 1        //Log files to download.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#3
Drocona Wrote:you can use the log functions of the server or you can write a plugin... logs are easier Toungue

Variables:
Code:
log on                //Creates a logfile (Enable= on Disable= off)
sv_logfile 1            //Log server information in the log file.
sv_logsdir F:\SRCDS\cstrike\logs    //Folder in the game directory where server logs will be stored.

sv_logecho 0            //Echo log information to the console.

sv_log_onefile 1        //Log server information to only one file.
sv_logbans 1            //Log server bans in the server logs.
sv_logdownloadlist 1        //Log files to download.

I put these values into the server.cfg?

Thanks for your help.
Reply
#4
beerboygc Wrote:
Drocona Wrote:you can use the log functions of the server or you can write a plugin... logs are easier Toungue

Variables:
Code:
log on                //Creates a logfile (Enable= on Disable= off)
sv_logfile 1            //Log server information in the log file.
sv_logsdir F:\SRCDS\cstrike\logs    //Folder in the game directory where server logs will be stored.

sv_logecho 0            //Echo log information to the console.

sv_log_onefile 1        //Log server information to only one file.
sv_logbans 1            //Log server bans in the server logs.
sv_logdownloadlist 1        //Log files to download.

I put these values into the server.cfg?

Thanks for your help.


yes Big Grin
Reply
#5
Bonsaihero Wrote:
beerboygc Wrote:
Drocona Wrote:you can use the log functions of the server or you can write a plugin... logs are easier Toungue

Variables:
Code:
log on                //Creates a logfile (Enable= on Disable= off)
sv_logfile 1            //Log server information in the log file.
sv_logsdir F:\SRCDS\cstrike\logs    //Folder in the game directory where server logs will be stored.

sv_logecho 0            //Echo log information to the console.

sv_log_onefile 1        //Log server information to only one file.
sv_logbans 1            //Log server bans in the server logs.
sv_logdownloadlist 1        //Log files to download.

I put these values into the server.cfg?

Thanks for your help.


yes Big Grin

Me again Smile

Does this output everything in the console, or just the actions that happen in game? I was to see everything from when i first run the server to who is playing etc etc.

Beerboy
Reply
#6
it should log everything from kills and bomb plants to bans, kicks and chat.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#7
Another thing, if you just want to copy the contents of the console to paste in a forum or something, you can right click the dos window in the task bar, goto edit, select all. Then right click it again and goto edit, copy. That'll copy it to the clipboard. (This is only useful if you don't want to log all the time)
randomresources.org | xfire: toasty2
Reply
#8
[Toast Wrote:]
Another thing, if you just want to copy the contents of the console to paste in a forum or something, you can right click the dos window in the task bar, goto edit, select all. Then right click it again and goto edit, copy. That'll copy it to the clipboard. (This is only useful if you don't want to log all the time)

Thanks Toast, that info im really looking for at the moment. Just want to make sure i'm not getting too many errors.

Thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)