Remember that the Log4j 1.x is deprecated and no more maintained, so When selecting the logging library of your decision you need to Opt for Log4j 2.x.The character set to employ when changing the syslog String to a byte array. The String needs to be a legitimate Charset. If not specified, this structure makes use of the platform default character