parametros

This commit is contained in:
Luiz Silva 2025-02-25 14:05:01 -03:00
parent 38849c8a1d
commit 257ac91394
5 changed files with 47 additions and 11 deletions

10
dist/logger.d.ts vendored
View file

@ -7,6 +7,9 @@ type tipoLevel = "info" | "warn" | "error";
type tipoOpSessao = {
inquilino: string;
usuario: string;
parametros?: {
[k: string]: string;
};
};
type tipoLog = {
detalhes?: unknown[];
@ -16,8 +19,11 @@ type tipoLog = {
[k: string]: string;
};
};
export declare const logger: ({ app: app_e, eProducao }: {
export declare const logger: ({ app: app_e, eProducao, parametros: parametrosAmbiente, }: {
app: string;
eProducao: boolean;
}) => ({ inquilino, usuario }: tipoOpSessao) => (level: tipoLevel, mensagem: string, op_tipoLog?: tipoLog) => Promise<[objeto: object, erro?: string]>;
parametros?: {
[k: string]: string;
};
}) => ({ inquilino, usuario, parametros: parametrosSessao }: tipoOpSessao) => (level: tipoLevel, mensagem: string, op_tipoLog?: tipoLog) => Promise<[objeto: object, erro?: string]>;
export {};