Closed acehko closed 7 years ago
Hi @acehko we seperate it in categorys:
If you want to log request$
or trace$
you can listen on events see Zipkin package as example.
e.g
hemera.on('onClientPostRequest', function (ctx) {
let trace = ctx.trace$
let request = ctx.request$
ctx.log.info(trace)
ctx.log.info(request)
......
})
@StarpTech Thanks, that's what I was looking for.
I did see these events in the docs: https://github.com/hemerajs/hemera#get-events
But they're a bit different. Looks like the words Server
and Client
are missing.
@acehko yes you're right I updated them some days ago.
How could I log additional data like
trace$
orrequest$
? The context object is not passed to the logger