Logging via Script

hempa
Posts: 48
Joined: Sat Jan 02, 2010 1:07 pm

Re: Logging via Script

Post by hempa »

Blasphemy! Undocumented code.

But really, I know what you mean. Keeping up good commenting is quite a challenge.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Logging via Script

Post by Vadi »

Yeah. The problem is not the format but time :D

hempa
Posts: 48
Joined: Sat Jan 02, 2010 1:07 pm

Re: Logging via Script

Post by hempa »

While on the topic of logging, is there a way to gag lines from the log output?

For example, on Midkemia I have the mapview switched on. Whenever I move, I get the map output to the game window. This is then moved to a separate console to give the impression of an updated map. This bloats the log and makes it hard to read later on :(

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Logging via Script

Post by Heiko »

I suggest custom logging. Checkout the Lua io library -> sticky tutorial topic

Post Reply