public static LogMessage parseNativeFormat(String msg) throws InvalidLogFormatException {
        Matcher m = nativeFormat.matcher(msg);
        if (! m.matches()) {
            throw new InvalidLogFormatException(msg);
        }
        @SuppressWarnings("deprecation")
        Level msgLevel = LogLevel.parse(m.group(6));

        Instant timestamp = parseTimestamp(m.group(1));
        String threadProcess = m.group(3);

        return new LogMessage(timestamp, m.group(2), parseProcessId(threadProcess), parseThreadId(threadProcess),
                              m.group(4), m.group(5), msgLevel,
                              m.group(7));
    }
Make a log message from the native format of the logging
package.

@param msg The log message
@return Returns a LogMessage instance
@throws InvalidLogFormatException if the log message
   can not be parsed, ie. is invalid, we throw this
   exception.
vespalog/src/main/java/com/yahoo/log/LogMessage.java