nestjs-auditlog
Version:
A powerful package for auditlog using opentelemetry in NestJS applications
16 lines (15 loc) • 627 B
TypeScript
import { BeforeApplicationShutdown, OnApplicationBootstrap } from '@nestjs/common';
import { IAuditLog, IAuditLogConfigOptions } from './audit-log.interface';
export declare class AuditLogService implements BeforeApplicationShutdown, OnApplicationBootstrap {
private readonly exporter;
constructor(options: Record<string, any> | IAuditLogConfigOptions);
onApplicationBootstrap(): Promise<void>;
sendAuditLog(log: IAuditLog): Promise<void>;
beforeApplicationShutdown(): Promise<void>;
getDataBefore(): Promise<{
name: string;
}>;
getDataAfter(): Promise<{
name: string;
}>;
}