Log parser and formatter tool