Log the given message at the given log level This helper wraps a log call to the logger within the spider, but you can use it directly (e.g. Spider.logger.info('msg')) or use any other Python logger too.
(self, message: Any, level: int = logging.DEBUG, **kw: Any)
| 60 | return SpiderLoggerAdapter(logger, {"spider": self}) |
| 61 | |
| 62 | def log(self, message: Any, level: int = logging.DEBUG, **kw: Any) -> None: |
| 63 | """Log the given message at the given log level |
| 64 | |
| 65 | This helper wraps a log call to the logger within the spider, but you |
| 66 | can use it directly (e.g. Spider.logger.info('msg')) or use any other |
| 67 | Python logger too. |
| 68 | """ |
| 69 | self.logger.log(level, message, **kw) |
| 70 | |
| 71 | @classmethod |
| 72 | def from_crawler(cls, crawler: Crawler, *args: Any, **kwargs: Any) -> Self: |
no outgoing calls