@Override
    public String convert(ILoggingEvent event) {
        int nanos = event.getNanoseconds();
        int millis_and_micros = nanos / 1000;
        int micros = millis_and_micros % 1000;

        if (micros >= 100)
            return Integer.toString(micros);
        else if (micros >= 10)
            return "0" + Integer.toString(micros);
        else
            return "00" + Integer.toString(micros);
    }
@Test
    public void smoke() {
        LoggingEvent le = new LoggingEvent();
        Instant instant = Instant.parse("2011-12-03T10:15:30Z");
        instant = instant.plusNanos(123_456_789);
        le.setInstant(instant);

        String result = mc.convert(le);
        assertEquals("456", result);
    }