Logger

class valveexe.Logger(logpath)[source]

Tracks console output by leveraging the con_logfile command. Supported in most source games (except l4d2)

__init__(logpath)[source]
Parameters:

logpath (path, str) – The path to the log file

logs
Type:

(str) - all the logs accumulated so far

log_ingest()[source]

Will resume reading the logs from where it last left off until the end and return all logs since

Return type:

str

log_until(until=None)[source]

Will log_ingest() until a specified regex is found within the logs and returns the logs until that point.

Parameters:

until (str) – A regex string to match against the logs

Return type:

str