StellarForum
May 22, 2012, 02:51:47 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Stellar Frontier has moved to the new forum and site at stellarfrontier.com!
Please make a new account there in preparation for SF 2.0 and to chat on the boards!
 
   Home   Help Search Groups Login Register  
Pages: [1]
  Send this topic  |  Print  
Author Topic: "-Log" feature shot? (Client)  (Read 1033 times)
Sandtrooper
Vice CinC of TRIBE
Administrator
Expert Member
*****
Posts: 504



WWW Email
« on: January 18, 2009, 09:58:27 PM »

I was trying to find out how many objects exist in Sol System Expanded, but the logging feature does not appear to work via the shortcut addition of "-log" after the target in the shortcut... Frontier.log is blank.
Report to moderator   Logged



Fleet Admiral Sandtrooper
2nd in Command of TRIBE

TRIBE-SD)    オークエボリューション
(Oak Evolution)
NiteHawk
<dev></dev>
Administrator
Legendary Member
*****
Posts: 2816



WWW
« Reply #1 on: January 19, 2009, 03:26:59 AM »

Aye.. I've seen this as well. It's to do with some experimental thing they added... Not sure why exactly. Have to take a look at it.
Report to moderator   Logged

http://chrisvall.com - Coding/gaming blog in the works.
NiteHawk
<dev></dev>
Administrator
Legendary Member
*****
Posts: 2816



WWW
« Reply #2 on: January 19, 2009, 11:41:57 AM »

I have to rewrite the log coding.

Either it was borked while they did changes to it (It generates alot of useless logs that I've never seen before.) or the new compiler does not like there coding.

In terms a good amount of there coding wasn't happy with VC++, I think this is to do with partically both, the coding, and the compiler.

They define the log file multiple times, I'm not sure why, this will confuse the compiler. Ends up crashing if I change it around. Have to recode the main piece of the logging.

Doesn't work on Server either. Gonna be a day or two to fix but this acts as a good debugger for myself as well, and I do wish to use it before release.
Report to moderator   Logged

http://chrisvall.com - Coding/gaming blog in the works.
NiteHawk
<dev></dev>
Administrator
Legendary Member
*****
Posts: 2816



WWW
« Reply #3 on: January 19, 2009, 09:19:36 PM »

I ended up recoding the whole log feature, took nearly most of the day..

Basicly, removed the garbage logs that spawn in the dat file, (COuld of been the issue, never seen this in older RC versions..) and frontier.log and server.log work properly now.

client: -log will create the frontier.log and add to it when you create a game or join one.
server: -lognone will spawn no log, as the others will spawn log with data, depending on what you select.

Additional things.
The server.log is the debugger type, much like frontier.log.
There is also a new file, console.log, which can log the console log file. So all the commands in server.conf should work properly now. To the changes, the default is now -logscreen, which logs only the console, which is a nice addition.

So:

-logall: Log both debug information and console information.
-logscreen: Log console only.
-logfile: Log debug information only.
-lognone: Logs none.

I also solved it from creating useless frontier.log and server.log files when no log is selected.
Report to moderator   Logged

http://chrisvall.com - Coding/gaming blog in the works.
Darius
Registered Member
*
Posts: 19


« Reply #4 on: May 13, 2009, 07:33:20 PM »

I like your new logging, especially how you split the console log off. There are some things I have to suggest, though. Most importantly, logs don't append. Instead, a new log is created that deletes the old one. This is fine for server.log, as it's only relevant for debugging one game at a time, but console.log should append every time. This is the most important.

Another problem is that clients can't log the console. At all. The only log they get is debug, which doesn't even include the console anymore. Shouldn't the client get the same four log options as the server?

Lastly, I think that it would be useful to separate logs by port; e.g. 20001_server.log and 20001_console.log. This way, if one machine is logging two servers it can log both with no conflict.
Report to moderator   Logged
NiteHawk
<dev></dev>
Administrator
Legendary Member
*****
Posts: 2816



WWW
« Reply #5 on: May 14, 2009, 12:36:55 AM »

I like your new logging, especially how you split the console log off. There are some things I have to suggest, though. Most importantly, logs don't append. Instead, a new log is created that deletes the old one. This is fine for server.log, as it's only relevant for debugging one game at a time, but console.log should append every time. This is the most important.

Another problem is that clients can't log the console. At all. The only log they get is debug, which doesn't even include the console anymore. Shouldn't the client get the same four log options as the server?

Lastly, I think that it would be useful to separate logs by port; e.g. 20001_server.log and 20001_console.log. This way, if one machine is logging two servers it can log both with no conflict.

Well I will try adding console logging for clients, it's a good idea. I'll see if its difficult to add, it may just be too meh to add at this point. I had to redo the whole logging for some reason!

Definatly about the ports, that is a great idea. Possibly PORT_server_Date.log .. or something like that might be better for server logging.
Report to moderator   Logged

http://chrisvall.com - Coding/gaming blog in the works.
NiteHawk
<dev></dev>
Administrator
Legendary Member
*****
Posts: 2816



WWW
« Reply #6 on: May 14, 2009, 06:36:02 PM »

Okay, I just did it the way you stated, seem better since debugger takes up alot of space.

So now if you run more then one server it will use the port for the log..

20001_console.log
20001_server.log
etc

And added the console log appending rather then overwriting, so you always keep the console log file. As for client side, we'll add it in the future. I just did the above as a quick fix but client logging will need a tinch of coding and probably another argument to allow console logging/ debugging/ or both.
Report to moderator   Logged

http://chrisvall.com - Coding/gaming blog in the works.
Darius
Registered Member
*
Posts: 19


« Reply #7 on: May 14, 2009, 07:35:13 PM »

I appreciate it a lot!  Grin
Report to moderator   Logged
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!