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

https://issues.jboss.org/browse/WFLY-1242
You could just set the buffers length to 0, `buffer.setLength(0)`, rather than creating a new one.