Logger

class squidasm.sim.stack.common.LogManager

Class for setting up and obtaining a logger that has been setup for SquidASM use. Logger for SquidASM has a default format that includes the time inside the simulation for each message.

classmethod get_log_level()

Get the log level of the SquidASM logger.

Return type:

int

classmethod get_stack_logger(sub_logger=None)

Obtain the SquidASM logger.

Parameters:

sub_logger (Optional[str]) – If used, it will return a child logger of the main SquidASM logger

Return type:

Logger

Returns:

The SquidASM logger

classmethod log_to_file(path)

Sets up sending the logs to an output file. Does not affect other log output methods.

Parameters:

path (str) – Location of output file. Overwrites existing file.

Return type:

None

classmethod set_log_level(level)

Sets the log level of the SquidASM logger.

Return type:

None