code: public static void configureSyslogDefaults(final String ident, final Level level,
                                               final String host, final int port,
                                               final String loggerName,
                                               final ReplaceNewLines replaceNewLines) {
      final Logger logger = (Logger) LoggerFactory.getLogger(loggerName);
  
      // Setup context
      final LoggerContext context = setupLoggerContext(logger, ident);
  
      // Setup syslog output
      logger.addAppender(getSyslogAppender(context, host, port, replaceNewLines));
  
      // Setup logging level
      logger.setLevel(level.logbackLevel);
  
      // Log uncaught exceptions
      UncaughtExceptionLogger.setDefaultUncaughtExceptionHandler();
    }
docs: Configure logging with default behavior and log to syslog.
  
  @param ident Syslog ident to use.
  @param level logging level to use.
  @param host Hostname or IP address of syslog host.
  @param port Port to connect to syslog on.
  @param loggerName Name of the logger to which the syslog appender will be added
  @param replaceNewLines configures new lines replacement in the messages