import { Logger } from "./logger"; import { IRequestContext } from "../pipeline/common"; export declare type EntryKind = "RR" | "Log" | "RR" | "ER" | "RT" | "ET" | "BC" | "EC" | "RE" | "EE"; export declare class VulcainLogger implements Logger { private static _enableInfo; private _hostname; private static readonly enableInfo; constructor(); /** * Log an error * * @param {any} context Current context * @param {Error} error Error instance * @param {string} [msg] Additional message * * @memberOf VulcainLogger */ error(context: IRequestContext | null, error: Error, msg?: () => string): void; /** * Log a message * * @param {any} context Current context * @param {string} msg Message format (can include %s, %j ...) * @param {...Array} params Message parameters * * @memberOf VulcainLogger */ info(context: IRequestContext | null, msg: () => string): void; /** * Log a verbose message. Verbose message are enable by service configuration property : enableVerboseLog * * @param {any} context Current context * @param {string} msg Message format (can include %s, %j ...) * @param {...Array} params Message parameters * * @memberOf VulcainLogger */ verbose(context: IRequestContext | null, msg: () => string): boolean; logAction(context: IRequestContext, kind: EntryKind, message?: string): void; private prepareEntry(context); private writeEntry(entry); }