Serialises each audit entry to JSON and passes it to a writer callback.
Suitable for forwarding to structured log aggregators such as AWS CloudWatch, Elasticsearch, or Splunk.
const sink = new StructuredJsonSink((json) => cloudwatch.putLogEvent(json));const logger = new AuditLogger({ sinks: [sink] }); Copy
const sink = new StructuredJsonSink((json) => cloudwatch.putLogEvent(json));const logger = new AuditLogger({ sinks: [sink] });
0.9.0
Optional
Private
Readonly
Write a single audit entry to the sink
Serialises each audit entry to JSON and passes it to a writer callback.
Suitable for forwarding to structured log aggregators such as AWS CloudWatch, Elasticsearch, or Splunk.
Example
Since
0.9.0