I have started this week to play with the Log::Any context data and structured data feature. With respect to the context data feature I was misled by the object method based access: $log->context. I thought the context belongs to the logger and maybe to subloggers, if we take logger category namespace inheritance into consideration. But if I have understood it right now the context is a property of the Log::Any::Manager singleton instance. From my perspective the following class method should be added to Log::Any
sub get_context { $manager->get_context }
If this sounds reasonable I can create a PR.
I have started this week to play with the Log::Any context data and structured data feature. With respect to the context data feature I was misled by the object method based access:
$log->context. I thought the context belongs to the logger and maybe to subloggers, if we take logger category namespace inheritance into consideration. But if I have understood it right now the context is a property of the Log::Any::Manager singleton instance. From my perspective the following class method should be added to Log::Anysub get_context { $manager->get_context }If this sounds reasonable I can create a PR.