Added log4j-mode and syslog-mode.