Rewrite debug function to use JLog