_comuns/dist/logger.d.ts
2025-02-22 14:04:59 -03:00

15 lines
460 B
TypeScript

type tipoLevel = "info" | "warn" | "error";
type tipoOpSessao = {
inquilino: string;
usuario: string;
};
type tipoLog = {
detalhes?: unknown[];
__filename?: string;
local?: string;
};
export declare const logger: ({ app, eProducao }: {
app: string;
eProducao: boolean;
}) => ({ inquilino, usuario }: tipoOpSessao) => (level: tipoLevel, mensagem: string, op_tipoLog?: tipoLog) => Promise<[objeto: object, erro?: string]>;
export {};