log

class Logger(name: Optional[str] = None)[源代码]

基类:object

Deafult logger in PaddleNLP

参数

name (str) -- Logger name, default is 'PaddleNLP'

processing(msg: str, interval: float = 0.1)[源代码]

Continuously print a progress bar with rotating special effects.

参数
  • msg (str) -- Message to be printed.

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