Skip to main content

luna.logger

AuditLog Objects

@dataclass
class AuditLog()

Represents an audit event's details within Luna's contract execution environment.

Attributes:

  • event_type (AuditEventType): The type of the audit event.
  • event_context (dict): Contextual information about the audit event.

Logger Objects

class Logger()

Logs audit events for contracts, equipped with engine handle and clock. Creates 'AuditEntry' instances for each audit event and forwards them to the engine.

NoLogger Objects

class NoLogger(Logger)

Placeholder logger with an empty implementation for 'log_audit'. This class allows for optional logging behavior within Luna's contract environment.