MCPcopy
hub / github.com/AstrBotDevs/AstrBot / emit

Method emit

astrbot/core/log.py:157–165  ·  view source on GitHub ↗
(self, record: logging.LogRecord)

Source from the content-addressed store, hash-verified

155 self.log_broker = log_broker
156
157 def emit(self, record: logging.LogRecord) -> None:
158 log_entry = self.format(record)
159 self.log_broker.publish(
160 {
161 "level": record.levelname,
162 "time": time.time(),
163 "data": log_entry,
164 },
165 )
166
167
168class LogManager:

Callers

nothing calls this directly

Calls 1

publishMethod · 0.80

Tested by

no test coverage detected