.
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)
|
||||
};
|
||||
};
|
||||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue