parser rewrite, new class for LogMessage