Log Parsing Code with Parameters