Skip to content

Console

feral3gp.feral.set_log_level(loglevel)

Set the log level for the main console

Source code in feral3gp/feral/core/simulation.py
23
24
25
26
27
def set_log_level(loglevel: feral.Loglevel):
    """
    Set the log level for the main console
    """
    Simulation.scenario.getConsole().setLogLevel(loglevel)

feral3gp.feral.set_log_file(log_file)

Set the log file for the main console

Source code in feral3gp/feral/core/simulation.py
30
31
32
33
34
def set_log_file(log_file: str):
    """
    Set the log file for the main console
    """
    Simulation.scenario.getConsole().setLogFile(log_file)

feral3gp.feral.set_log_timestamps(log_time_stamp)

Set the log time stamps for the main console

Source code in feral3gp/feral/core/simulation.py
37
38
39
40
41
def set_log_timestamps(log_time_stamp: feral.LogTimeStamp):
    """
    Set the log time stamps for the main console
    """
    Simulation.scenario.getConsole().setLogTimeStamps(log_time_stamp)