ToME: the Tales of Maj'Eyal
http://forums.te4.org/

Separate engine and modules error logs
http://forums.te4.org/viewtopic.php?f=46&t=28651
Page 1 of 1

Author:  Grey [ Wed Sep 21, 2011 1:57 pm ]
Post subject:  Separate engine and modules error logs

As per title. Sometimes it can be hard finding the relevant module output between all the engine loading stuff. Or perhaps suppress the output for the boot module, since it all seems to work fine anyway.

Author:  tiger_eye [ Wed Sep 21, 2011 2:51 pm ]
Post subject:  Re: Separate engine and modules error logs

Grey, I suggest making the output of your module grep-able from the main log. Make your own module print function as below:
Code:
mprint = function(...)
    print("[MY_MODULE]", ...)
end
and use "mprint" in your module instead of "print". This allows you to do `grep '[MY_MODULE]' te4_log.txt` to see all the module-related output.

Author:  Grey [ Wed Sep 21, 2011 3:06 pm ]
Post subject:  Re: Separate engine and modules error logs

And what the frell is grep?

(Actually I sorta know what it is, and quite specifically know it's not available to me.)

Author:  reverend [ Wed Sep 21, 2011 3:31 pm ]
Post subject:  Re: Separate engine and modules error logs

grep outputs (in this case) just the lines that meet the condition. On Windows, you can use an editor like Notepad++ - it's search-in-files function works quite similar, if a bit uglier.

Author:  budswell [ Thu Sep 22, 2011 12:45 am ]
Post subject:  Re: Separate engine and modules error logs

A little rough but this could also help
http://www.wingrep.com/

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/