.
This commit is contained in:
parent
5bfc913d65
commit
e68474aad0
5 changed files with 8 additions and 16 deletions
|
|
@ -71,17 +71,12 @@ const iniciarELog = (opcoes) => {
|
||||||
critico: (pr) => emitir("CRITICO" /* CRITICO */, pr)
|
critico: (pr) => emitir("CRITICO" /* CRITICO */, pr)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
const log = iniciarELog({
|
const _log = iniciarELog({
|
||||||
app: "testando",
|
app: "testando",
|
||||||
nivelMinimo: "INFORMACAO" /* INFORMACAO */,
|
nivelMinimo: "INFORMACAO" /* INFORMACAO */,
|
||||||
arquivamento: (entrada, opcoes) => {
|
arquivamento: () => {
|
||||||
fetch("https://localhost:3334/debug/log", {
|
|
||||||
method: "POST",
|
|
||||||
body: JSON.stringify({ ...entrada, _opcoes: opcoes })
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
log.aviso({ origem: "teste", mensagem: "teste" });
|
|
||||||
// Annotate the CommonJS export names for ESM import in node:
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
0 && (module.exports = {
|
0 && (module.exports = {
|
||||||
NivelLog,
|
NivelLog,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-comuns",
|
"name": "p-comuns",
|
||||||
"version": "0.349.0",
|
"version": "0.350.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./dist-front/index.mjs",
|
"main": "./dist-front/index.mjs",
|
||||||
"module": "./dist-front/index.mjs",
|
"module": "./dist-front/index.mjs",
|
||||||
|
|
|
||||||
BIN
pacote.tgz
BIN
pacote.tgz
Binary file not shown.
11
src/eLog.ts
11
src/eLog.ts
|
|
@ -121,15 +121,12 @@ export const iniciarELog = (opcoes: {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const log = iniciarELog({
|
const _log = iniciarELog({
|
||||||
app: "testando",
|
app: "testando",
|
||||||
nivelMinimo: NivelLog.INFORMACAO,
|
nivelMinimo: NivelLog.INFORMACAO,
|
||||||
arquivamento: (entrada, opcoes) => {
|
arquivamento: () => {
|
||||||
fetch("https://localhost:3334/debug/log", {
|
//
|
||||||
method: "POST",
|
|
||||||
body: JSON.stringify({ ...entrada, _opcoes: opcoes }),
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
log.aviso({ origem: "teste", mensagem: "teste" })
|
//log.aviso({ origem: "teste", mensagem: "teste" })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue