logger.get_logger
dareplane_utils.logging.logger.get_logger(
name,=False,
add_console_handler=colors,
colors=False,
no_socket_handler )
Get a configured logger.
Parameters
Name | Type | Description | Default |
---|---|---|---|
name | str | The name of the logger. | required |
add_console_handler | bool | If True, add a console handler to the logger (default is False). | False |
colors | dict | A dictionary of colors for log levels (default is colors ). |
colors |
no_socket_handler | bool | If True, opt out of adding a socket handler for TCP streaming (default is False). | False |
Returns
Name | Type | Description |
---|---|---|
logging.Logger | The configured logger. |