Loopy Logging?
bait
Join Date: 2003-09-12 Member: 20793Members
i run a dedicated ns server (newest version) on redhat linux; i've tried running it with both "log on" in the autoexec.cfg file, and as a command line argument. it does log, but it seems to be delayed. for instance, when a map loads i typically get:
L 10/12/2004 - 23:57:19: Loading map "co_core"
<lots of server vars...>
L 10/12/2004 - 23:57:19: Server cvar "sv_password" = ""
L 10/12/2004 - 23:57:19: Server cvar "sv_proxies" = "1"
L 10/12/2
it cuts off just like that. if people join the server and start a game, it will "finish" logging, or update the log later on, but not immediately.
i've searched the net, user groups and so forth to no avail. is this simply how hlds_l functions? i do have the disk space <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo--> hehe.
thanks guys...
L 10/12/2004 - 23:57:19: Loading map "co_core"
<lots of server vars...>
L 10/12/2004 - 23:57:19: Server cvar "sv_password" = ""
L 10/12/2004 - 23:57:19: Server cvar "sv_proxies" = "1"
L 10/12/2
it cuts off just like that. if people join the server and start a game, it will "finish" logging, or update the log later on, but not immediately.
i've searched the net, user groups and so forth to no avail. is this simply how hlds_l functions? i do have the disk space <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo--> hehe.
thanks guys...
Comments
1. Do not put "log on" in your initial server command. Instead it should look something like this (substitute your info):
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
./hlds_run -game ns +ip 208.28.184.222 +port 27015 -debug
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
2. Remove or comment out any instances of "log on" in your server.cfg file.
3. Create an autoexec.cfg file and stick it in your ns directory. Copy and paste this info and put it in the file:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
//
// autoexec.cfg
// Server setup configuration file. This file is automatically executed once,
// when the server is started.
//
//Location of the log files
logsdir logs
// maxplayers <number>
// Default: 6
// Sets how many players are allowed on the server at one time. The maximum is
// 32 players. The more players you allow, the greater the upstream bandwidth
// you will require.
maxplayers 15
// log <on|off>
// Default: off
// Use this command to enable logging on the server. See also the Logging
// Settings in 'server.cfg'.
log on
// logaddress <ip> <port>
// Default: (none)
// If logging is enabled, this command allows log data to be sent to a remote
// address. The log data is transmitted as UDP data packets, which can be
// parsed by third-party applications. You can also set the logaddress to the
// IP and port of your Half-Life client and the log data will be displayed in
// the client console.
//logaddress 127.0.0.1 27500
// servercfgfile <filename>
// Default: "server.cfg"
// Sets the name of the configuration file which is executed at each map
// change.
servercfgfile "server.cfg"
//
// Load Initial Map
// Here we load the first map that the server will run. Nobody can connect to
// the server until a map is loaded.
//
map ns_altair
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
After that, all roguishness should go away.
thanks <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->