38 lines
1 KiB
TypeScript
38 lines
1 KiB
TypeScript
export type tipoLokiObjeto = {
|
|
streams: {
|
|
stream: {
|
|
[k: string]: string;
|
|
};
|
|
values: [string, string][];
|
|
}[];
|
|
};
|
|
export declare const postLogger: ({ objeto, }: {
|
|
objeto: tipoLokiObjeto;
|
|
}) => Promise<[objeto: tipoLokiObjeto, erro?: string]>;
|
|
/** define a localização da pasta do projeto */
|
|
export declare const defineCwd: (novoCwd: string) => void;
|
|
type tipoLevel = "info" | "warn" | "error";
|
|
type tipoOpSessao = {
|
|
inquilino: string;
|
|
usuario: string;
|
|
parametros?: {
|
|
[k: string]: string;
|
|
};
|
|
};
|
|
type tipoLog = {
|
|
detalhes?: unknown[];
|
|
__filename?: string;
|
|
local?: string;
|
|
parametros?: {
|
|
[k: string]: string;
|
|
};
|
|
};
|
|
type tipoLogger = (amb: {
|
|
app: string;
|
|
eProducao: boolean;
|
|
parametros?: {
|
|
[k: string]: string;
|
|
};
|
|
}) => (sess: tipoOpSessao) => (level: tipoLevel, mensagem: string, op_tipoLog?: tipoLog) => Promise<[objeto: tipoLokiObjeto, erro?: string]>;
|
|
export declare const logger: tipoLogger;
|
|
export {};
|