nvflare.fuel.sec.audit module

class AuditService[source]

Bases: object

Service for interacting with Auditor to add events to log.

static add_event(user: str, action: str, ref: str = '', msg: str = '') str[source]
static add_job_event(job_id: str, scope_name: str = '', task_name: str = '', task_id: str = '', ref: str = '', msg: str = '') str[source]
static close()[source]
static get_auditor()[source]
static initialize(audit_file_name: str)[source]
the_auditor = None
class Auditor(audit_file_name: str)[source]

Bases: object

Manages the audit file to log events.

Parameters:

audit_file_name (str) – the location to save audit log file

add_event(user: str, action: str, ref: str = '', msg: str = '') str[source]
add_job_event(job_id: str, scope_name: str = '', task_name: str = '', task_id: str = '', ref: str = '', msg: str = '') str[source]
close()[source]