@Override
    public Object convert(String value) {
        if (value == null || value.isEmpty()) {
            return value;
        }

        Integer priority = Ints.tryParse(value);

        if (priority == null) {
            return value;
        }

        return SyslogPriUtilities.levelFromPriority(priority);
    }
@Test
    public void testConvert() throws Exception {
        Converter hc = new SyslogPriLevelConverter(new HashMap<String, Object>());
        assertNull(hc.convert(null));
        assertEquals("", hc.convert(""));
        assertEquals("lol no number", hc.convert("lol no number"));

        assertEquals(6, hc.convert("14")); // info
        assertEquals(4, hc.convert("12")); // warning
        assertEquals(7, hc.convert("7")); // debug
        assertEquals(7, hc.convert("87")); // debug
        assertEquals(5, hc.convert("5")); // notice
    }