parametros
This commit is contained in:
parent
38849c8a1d
commit
257ac91394
5 changed files with 47 additions and 11 deletions
10
dist/logger.d.ts
vendored
10
dist/logger.d.ts
vendored
|
|
@ -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 {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue