I do not understand, by compiling with par with the -gui flag, you are stating that you don't want a console nor the bind to stdout or stdin or stderr. If you need console output don't compile with -gui. If you don't want the console (and the default in/out/err binds) and need to dump to some log open a log filehandle and do so in your source.