set_log_file#

Model.set_log_file(file_name)#

Sets the log file used for model logging.

Parameters:

file_name (str) – Path to the log file. Passing an empty string stops file logging.

Return type:

bool

Returns:

Returns true when the requested logging state is applied successfully.

Notes

This is a beta API. The behavior and implementation may change in future.

Examples

>>> model.set_log_file("C:/logs/prime_server.log")