labscript_utils.setup_logging

class labscript_utils.setup_logging.LessThanFilter(less_than)[source]
filter(record)[source]

Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.

labscript_utils.setup_logging.setup_logging(program_name, log_level=10, terminal_level=20, maxBytes=52428800, backupCount=1)[source]