protected static byte getSyslogLevel()

in gflog-core/src/main/java/com/epam/deltix/gflog/core/layout/GelfLayout.java [138:157]


    protected static byte getSyslogLevel(final LogLevel level) {
        switch (level) {
            case TRACE:
            case DEBUG:
                return '7'; // debug

            case INFO:
                return '6'; // info

            case WARN:
                return '4'; // warn

            case ERROR:
                return '3'; // error
            case FATAL:
                return '2'; // critical
            default:
                return '0'; // should not happen
        }
    }