when developing i like, no, i need to have debug
output. in freemind one would fulfill this task using
System.out.println(). but(!), always in and
outcommenting of those statements is somewhat tiresome.
now, there is log4j which is a powerful tool to channel
debug output reasonable. disadvantage would be: we need
to ship log4j.jar when importing the log4j packages.
furthermore, i dont think freemind has reached the
complexity for a reasonable application of all those
log4j features already.
so, i implemented a lightweight class that uses
log4j-syntax, yet is way smaller in features and loc
:-) using this we could write proper debug-logs and
still could discuss whether integration of log4j would
be useful and when it'd be useful...
freemind.main.Freemind now has a static member
freemindLog of type freemind.util.LogFile
use the methods
instead of System.out.println("message")
to invoke message-printing start freemind with argument
if you want to redirect output to a file set
freemindlog = %logfilename%
leave it empty to print to System.out
best regards and thanks for your great work...
Log in to post a comment.