15 lines
460 B
TypeScript
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 {};
|