This commit is contained in:
Luiz Silva 2026-06-17 09:47:34 -03:00
parent 5bfc913d65
commit e68474aad0
5 changed files with 8 additions and 16 deletions

View file

@ -71,17 +71,12 @@ const iniciarELog = (opcoes) => {
critico: (pr) => emitir("CRITICO" /* CRITICO */, pr)
};
};
const log = iniciarELog({
const _log = iniciarELog({
app: "testando",
nivelMinimo: "INFORMACAO" /* INFORMACAO */,
arquivamento: (entrada, opcoes) => {
fetch("https://localhost:3334/debug/log", {
method: "POST",
body: JSON.stringify({ ...entrada, _opcoes: opcoes })
});
arquivamento: () => {
}
});
log.aviso({ origem: "teste", mensagem: "teste" });
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
NivelLog,

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "p-comuns",
"version": "0.349.0",
"version": "0.350.0",
"description": "",
"main": "./dist-front/index.mjs",
"module": "./dist-front/index.mjs",

Binary file not shown.

View file

@ -121,15 +121,12 @@ export const iniciarELog = (opcoes: {
}
}
const log = iniciarELog({
const _log = iniciarELog({
app: "testando",
nivelMinimo: NivelLog.INFORMACAO,
arquivamento: (entrada, opcoes) => {
fetch("https://localhost:3334/debug/log", {
method: "POST",
body: JSON.stringify({ ...entrada, _opcoes: opcoes }),
})
arquivamento: () => {
//
},
})
log.aviso({ origem: "teste", mensagem: "teste" })
//log.aviso({ origem: "teste", mensagem: "teste" })