Add a file handler to the mapdl log. This allows you to redirect the APDL logging to a file.
str
Filename of the log.
When True, appends to an existing log file. When False, overwrites the log file if it already exists.
True
False
Log level. Must be one of: 'DEBUG', 'INFO', 'WARNING', 'ERROR'.
'DEBUG', 'INFO', 'WARNING', 'ERROR'
Examples
Start writing the log to a new file named “mapdl.log”
>>> mapdl.add_file_handler('mapdl.log')