是否可以让 ngx-logger 使用不同的对象进行记录?目前所有的日志都是基于下面的NGXLogInterface:
export class NGXLogInterface {
level: NgxLoggerLevel;
timestamp: string;
fileName: string;
lineNumber: string;
message: string;
additional: any[];
}
但是,我需要将我的日志发送到一个 API,该 API 需要如下所示的主体:
{
"application": "string",
"component": "string",
"area": "string",
"level": "string",
"details": "string",
"executingUser": "string",
}