Log warning message.
(self, msg: Any, to_wandb: bool = False, **kwargs)
| 252 | self._log_to_wandb({"log": formatted}) |
| 253 | |
| 254 | def warning(self, msg: Any, to_wandb: bool = False, **kwargs) -> None: |
| 255 | """Log warning message.""" |
| 256 | formatted = self._format_message(msg, **kwargs) |
| 257 | self._logger.warning(formatted) |
| 258 | if to_wandb and self._wandb_enabled: |
| 259 | self._log_to_wandb({"warning": formatted}) |
| 260 | |
| 261 | def error(self, msg: Any, to_wandb: bool = True, **kwargs) -> None: |
| 262 | """Log error message. Errors are logged to wandb by default.""" |