plogger-sdk
Version:
Typescript based frontend logging library compatible with multiple transports and JS/TS frameworks
23 lines (22 loc) • 842 B
TypeScript
import { logPayload } from "../ILogger";
import { logLevelType } from "../logLevel";
import { messageObj } from "../logs/messageObj";
import { IStackFrame } from "./errorObj";
export declare class logRecord {
level: logLevelType;
timestamp: Date | null;
scope: string;
log: unknown;
formatter: string | null;
rawMessage: unknown;
metaData: IStackFrame | IStackFrame[] | null;
private formatPlaceholders;
enumMessage: messageObj;
timestampGenerator: () => null | Date;
constructor(level: logLevelType, scope: string, message: unknown, formatter: string | null, staticParams: logPayload, enumMessage: messageObj, timestampGenerator: () => Date);
fetchCallStack(stackDepth: number): void;
generateFormatPlaceholders(): void;
getFormatPlaceholders(): {
[key: string]: any;
};
}