20,741
edits
m (adding quote as pointer, which contains additional info/snippets to be added here at some point) |
No edit summary |
||
Line 13: | Line 13: | ||
|author=<nowiki>Hooray</nowiki> | |author=<nowiki>Hooray</nowiki> | ||
|date=<nowiki>Thu Feb 26</nowiki> | |date=<nowiki>Thu Feb 26</nowiki> | ||
}} | |||
}} | |||
== Development == | |||
{{FGCquote | |||
|'m working a bit on reworking the logging exposed to Nasal, since it hasn't been updated in years (besides the addition of the never-used logprint() by James, the old printlog() only goes to the $FG_HOME/fgfs.log file if it would also go to the console and is implemented in globals.nas - aka can't be depended on in $FG_ROOT/Nasal/*.nas). This is going to eventually help with the Nasal REPL (aka to capture output), but I discovered something really weird: sglog().would_log() returns true for any priority >{{=}} INFO! This almost seems like a bug to me, but OTOH it is required by the SG_LOG() macro to ensure that the logging file is not ignored in the if statement (since SG_LOG() uses would_log()). | |||
|{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=202850#p202850 | |||
|title=<nowiki>sglog().would_log()</nowiki> | |||
|author=<nowiki>Philosopher</nowiki> | |||
|date=<nowiki>Fri Mar 07</nowiki> | |||
}} | }} | ||
}} | }} |