[WFLY-1242] use JBossLogPrintWriter to output log information to jboss logging

https://issues.jboss.org/browse/WFLY-1242
Hi Stuart, Thanks for review.
I think we use the same newline logic as other write() methods. Can you tell your thought more please?