src.spyice.utils.spyice_logger#

class src.spyice.utils.spyice_logger.SpyiceLogger[source]#

Bases: StringIO

A class that replaces the print function with a logger object.

Parameters:
  • logger – The logger object used for logging.

  • *args – Additional positional arguments.

  • **kwargs – Additional keyword arguments.

__init__(logger, *args, **kwargs)[source]#
Parameters:
  • logger – The logger object used for logging.

  • *args – Additional positional arguments.

  • **kwargs – Additional keyword arguments.

flush()[source]#

Flush write buffers, if applicable.

This is not implemented for read-only and non-blocking streams.

write(message)[source]#

Writes the given message to the logger if it is not empty.

Parameters:

message (str) – The message to be written to the logger.

Returns:

None