Converting fmt lines to log lines for mongodb