public static String syslogLevelToReadable(int level) {
        switch (level) {
            case 0:
                return "Emergency";
            case 1:
                return "Alert";
            case 2:
                return "Critical";
            case 3:
                return "Error";
            case 4:
                return "Warning";
            case 5:
                return "Notice";
            case 6:
                return "Informational";
            case 7:
                return "Debug";
        }

        return "Invalid";
    }
@Test
    public void testSyslogLevelToReadable() {
        assertEquals("Invalid", Tools.syslogLevelToReadable(1337));
        assertEquals("Emergency", Tools.syslogLevelToReadable(0));
        assertEquals("Critical", Tools.syslogLevelToReadable(2));
        assertEquals("Informational", Tools.syslogLevelToReadable(6));
    }