CompositeLogHandler
QuantConnect.Logging.CompositeLogHandler
CompositeLogHandler()
CompositeLogHandler(
*handlers: Union[ILogHandler, Iterable[ILogHandler]]
)
Bases: Object, ILogHandler
Provides an ILogHandler implementation that composes multiple handlers
Signature descriptions:
-
Initializes a new instance of the CompositeLogHandler that pipes log messages to the console and log.txt
-
Initializes a new instance of the CompositeLogHandler class from the specified handlers
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
handlers
|
Union[ILogHandler, Iterable[ILogHandler]]
|
The implementations to compose |
()
|
debug
debug(text: str) -> None
Write debug message to log
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
|
required |
dispose
dispose() -> None
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
error
error(text: str) -> None
Write error message to log
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
|
required |
trace
trace(text: str) -> None
Write debug message to log
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
|
required |