paarthenon / daslog

An unusually well-typed immutable and portable logger
Mozilla Public License 2.0
4 stars 0 forks source link

Structural/object logging #12

Open paarthenon opened 2 years ago

paarthenon commented 2 years ago

Because daslog can accept appender factories, it's actually super easy to create a logger that expects an object instead. But this isn't clearly laid out anywhere and it would be best to create something that satisfies the use case of 90% of people who want structured logging.

So, to that end,

paarthenon commented 2 years ago

I think it would be a good idea to leverage the existing social chain. In the line logger, the order of the items matters, but in the object logger presence will be used to determine whether or not to log that aspect.