MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / LogRecorder

Class LogRecorder

lib/utils/api.py:273–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 pass
272
273class LogRecorder(logging.StreamHandler):
274 def emit(self, record):
275 """
276 Record emitted events to IPC database for asynchronous I/O
277 communication with the parent process
278 """
279 conf.databaseCursor.execute("INSERT INTO logs VALUES(NULL, ?, ?, ?, ?)", (conf.taskid, time.strftime("%X"), record.levelname, str(record.msg % record.args if record.args else record.msg)))
280
281def setRestAPILog():
282 if conf.api:

Callers 1

setRestAPILogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…