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,