Skip to main content

databricks.labs.dqx.installer.logs

PartialLogRecord Objects

@dataclass
class PartialLogRecord()

The information found within a log file record.

peak_multi_line_message

def peak_multi_line_message(
log: TextIO, pattern: re.Pattern) -> tuple[str, re.Match | None, str]

A single log record message may span multiple log lines. In this case, the regex on subsequent lines do not match.

Arguments:

  • log TextIO - The log file IO.
  • pattern re.Pattern - The regex pattern for a log line.

parse_logs

def parse_logs(log: TextIO) -> Iterator[PartialLogRecord]

Parse the logs to retrieve values for PartialLogRecord fields.

Arguments:

  • log TextIO - The log file IO.