hapijs / log

hapi logging plugin
Other
6 stars 5 forks source link

Support attaching data to each log #5

Closed cjihrig closed 3 years ago

cjihrig commented 3 years ago

Similar to the concept of a child logger. By attaching a set of data for each log users don't need to attach it "by hand."

geek commented 3 years ago

Maybe we can have a base set of additionalFields like hostname, pid, and uri <- the server.info.uri, then any custom supplied additionalFields can override these values if need be.

Nargonath commented 3 years ago

Seems like a good idea to me @geek . It provides interesting defaults that are not written in stone that you can easily override.