gcp-logs
Version:
Package that standardizes logs for GCP, specifically for NestJS
28 lines (27 loc) • 543 B
text/typescript
export interface ErrorLogContext {
requestId: string;
channel: string;
message?: string;
description: string;
context: {
accountability: string;
category: string;
method: string;
exception: Error;
errorMessage: string;
type?: string;
};
details?: Record<string, unknown>;
}
export interface LogContext {
requestId: string;
channel: string;
message?: string;
description: string;
context: {
category: string;
method: string;
type?: string;
};
details?: Record<string, unknown>;
}