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

https://issues.jboss.org/browse/WFLY-1242
We had discussed that. I think 'setLength' or 'new' are works here. But I agree 'setLength' is better in this case. I will fix it and resend PR. Thanks!