diagnostic_log Class

Directs debug logs to a specified file.

Inheritance
builtins.object
diagnostic_log

Constructor

diagnostic_log(log_path=None, namespaces=None, context_name=None)

Parameters

log_path
str
default value: None

A path with log file name. If None, a file named "azureml.log" is created.

namespaces
list
default value: None

A list of namespaces to capture logs for. If None, the default is "azureml", "msrest.http_logger", "urllib2", and "azure".

context_name
default value: None

A name to identify the logging context. If None, the context of the calling stack frame is used.

Methods

start_capture

Start the capture of debug logs.

stop_capture

Stop the capture of debug logs.

start_capture

Start the capture of debug logs.

start_capture()

stop_capture

Stop the capture of debug logs.

stop_capture()