bittensor.utils.btlogging.console#

BittensorConsole class gives the ability to log messages to the terminal without changing Bittensor logging level.

Example

from bittensor import logging

# will be logged logging.console.info(“info message”) logging.console.error(“error message”) logging.console.success(“success message”) logging.console.warning(“warning message”) logging.console.critical(“critical message”)

# will not be logged logging.info(“test info”)

Classes#

Functions#

Module Contents#

class bittensor.utils.btlogging.console.BittensorConsole(logger)#
Parameters:

logger (bittensor.utils.btlogging.loggingmachine.LoggingMachine)

critical(message)#

Logs a CRITICAL message to the console.

Parameters:

message (str)

debug(message)#

Logs a DEBUG message to the console.

Parameters:

message (str)

error(message)#

Logs a ERROR message to the console.

Parameters:

message (str)

info(message)#

Logs a INFO message to the console.

Parameters:

message (str)

logger#
success(message)#

Logs a SUCCESS message to the console.

Parameters:

message (str)

warning(message)#

Logs a WARNING message to the console.

Parameters:

message (str)

bittensor.utils.btlogging.console._print_wrapper(func)#
Parameters:

func (Callable)