@sonatel-os/juf-xpress-logger-edge
Version:
JUF XPress logger for Node Edge
63 lines (62 loc) • 2.55 kB
TypeScript
export const LoggerBootstrapStructure: import("superstruct").Struct<{
logLevel?: string | undefined;
appName?: string | undefined;
crypt?: string[] | undefined;
logConsole?: boolean | undefined;
logDir?: string | undefined;
constantFileName?: boolean | undefined;
findLogFile?: Function | undefined;
startApmAgent?: boolean | undefined;
}, {
appName: import("superstruct").Struct<string | undefined, null>;
crypt: import("superstruct").Struct<string[] | undefined, import("superstruct").Struct<string, null>>;
logConsole: import("superstruct").Struct<boolean | undefined, null>;
logDir: import("superstruct").Struct<string | undefined, null>;
constantFileName: import("superstruct").Struct<boolean | undefined, null>;
findLogFile: import("superstruct").Struct<Function | undefined, null>;
logLevel: import("superstruct").Struct<string | undefined, null>;
startApmAgent: import("superstruct").Struct<boolean | undefined, null>;
}>;
export const WriteLogOptions: import("superstruct").Struct<{
action: string;
params: {
method: string;
logFrom: string;
userIp: string;
logTarget: string;
userAgent: string;
logStatus: number;
logStatusCode: string;
headers?: any;
payload?: any;
};
logLevel?: string | undefined;
userName?: string | undefined;
duration?: number | undefined;
}, {
params: import("superstruct").Struct<{
method: string;
logFrom: string;
userIp: string;
logTarget: string;
userAgent: string;
logStatus: number;
logStatusCode: string;
headers?: any;
payload?: any;
}, {
logFrom: import("superstruct").Struct<string, null>;
userIp: import("superstruct").Struct<string, null>;
method: import("superstruct").Struct<string, null>;
payload: import("superstruct").Struct<any, null>;
headers: import("superstruct").Struct<any, null>;
logTarget: import("superstruct").Struct<string, null>;
userAgent: import("superstruct").Struct<string, null>;
logStatus: import("superstruct").Struct<number, null>;
logStatusCode: import("superstruct").Struct<string, null>;
}>;
userName: import("superstruct").Struct<string | undefined, null>;
logLevel: import("superstruct").Struct<string | undefined, null>;
action: import("superstruct").Struct<string, null>;
duration: import("superstruct").Struct<number | undefined, null>;
}>;