addLog method
Adds a single InfospectLog entry to the logger of the Infospect instance.
log: The log entry to be added.
Implementation
void addLog(InfospectLog log) {
// Adds the log entry to the logger.
_infospect.infospectLogger.add(log);
// Sends the log to any potential subscribers or handlers.
_infospect.sendLogs([log]);
}