AedtLogger#
- class ansys.aedt.core.aedt_logger.AedtLogger(level=10, filename=None, to_stdout=False, desktop=None)#
Specifies the logger to use for each AEDT logger.
This class allows you to add a handler to write messages to a file and to indicate whether to write mnessages to the standard output (stdout).
- Parameters:
Methods
AedtLogger.add_debug_message
(message_text[, ...])Parameterized message to the message manager to specify the type and project or design level.
AedtLogger.add_error_message
(message_text[, ...])Add a type 2 "Error" message to the message manager tree.
AedtLogger.add_file_logger
(filename, ...[, ...])Add a new file to the logger handlers list.
AedtLogger.add_info_message
(message_text[, ...])Add a type 0 "Info" message to the active design level of the message manager tree.
AedtLogger.add_logger
(destination[, level])Add a logger for either the active project or active design.
AedtLogger.add_message
(message_type, ...[, ...])Add a message to the message manager to specify the type and project or design level.
AedtLogger.add_warning_message
(message_text)Add a type 1 "Warning" message to the message manager tree.
AedtLogger.clear_messages
([proj_name, ...])Clear all messages.
AedtLogger.debug
(msg, *args, **kwargs)Write a debug message to the global logger.
Disable the log in AEDT.
Disable writing log messages to an output file.
Disable printing log messages to stdout.
Enable the log in AEDT.
Enable writing log messages to an output file.
Enable printing log messages to stdout.
AedtLogger.error
(msg, *args, **kwargs)Write an error message to the global logger.
AedtLogger.get_messages
([project_name, ...])Get the message manager content for a specified project and design.
AedtLogger.info
(msg, *args, **kwargs)Write an info message to the global logger.
AedtLogger.info_timer
(msg[, start_time])Write an info message to the global logger with elapsed time.
Remove all the local files from the logger handlers list.
AedtLogger.remove_file_logger
(project_name)Remove a file from the logger handlers list.
AedtLogger.reset_timer
([time_val])Reset actual timer to actual time or specified time.
AedtLogger.warning
(msg, *args, **kwargs)Write a warning message to the global logger.
Attributes
Message manager content for the active project and design.
Message manager content for the active project and design.
Message manager content for the active project and design.
Message manager content for the active project and design.
Design logger.
Name of current logger design.
Message manager content for the active pyaedt session.
Global logger.
Message manager content for the active pyaedt session.
AEDT logger object.
Message manager content for the active session.
Check if desktop is graphical or not.
Design object.
Project object.
Project logger.
Name of current logger project.
Message manager content for the active pyaedt session.