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)[source]#
Parameters:

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

critical(message)[source]#

Logs a CRITICAL message to the console.

Parameters:

message (str)

debug(message)[source]#

Logs a DEBUG message to the console.

Parameters:

message (str)

error(message)[source]#

Logs a ERROR message to the console.

Parameters:

message (str)

info(message)[source]#

Logs a INFO message to the console.

Parameters:

message (str)

logger#
success(message)[source]#

Logs a SUCCESS message to the console.

Parameters:

message (str)

warning(message)[source]#

Logs a WARNING message to the console.

Parameters:

message (str)

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

func (Callable)