13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
import { logger } from "./logger"
|
|
|
|
const l = logger({ app: "teste", eProducao: true })
|
|
|
|
const lg = l({
|
|
inquilino: "conta_1",
|
|
usuario: "pedrinho",
|
|
})
|
|
|
|
lg("error", "Deu Ruim").then((a) => console.log(JSON.stringify(a)))
|
|
lg("info", "Deu Bom", { __filename }).then((a) =>
|
|
console.log(JSON.stringify(a)),
|
|
)
|