log#

class Logger(name: str | None = None)[source]#

Bases: object

Deafult logger in PaddleNLP

Parameters:

name (str) – Logger name, default is ‘PaddleNLP’

processing(msg: str, interval: float = 0.1)[source]#

Continuously print a progress bar with rotating special effects.

Parameters:
  • msg (str) – Message to be printed.

  • interval (float) – Rotation interval. Default to 0.1.