nestjs-auditlog
Version:
A powerful package for auditlog using opentelemetry in NestJS applications
22 lines (21 loc) • 741 B
TypeScript
import { IAuditLog, IAuditLogExporter, IAuditLogExporterOptions } from '../audit-log.interface';
/**
* The abstract class of audit log exporter
*/
export declare class AuditLogExporter implements IAuditLogExporter {
private readonly loggerProvider;
private readonly loggerOtel;
private readonly options;
constructor(options: IAuditLogExporterOptions);
clone(): IAuditLogExporter;
startup(): Promise<void>;
shutdown(): Promise<void>;
sendAuditLog(log: IAuditLog): Promise<void>;
/**
* the transformation function to convert audit log object to readable log body string
*
* @param log audit log
* @returns log body
*/
customLoggerBodyTransformation(log: IAuditLog): string;
}