On Thu Oct 31 13:54:21 2013, GVL wrote:
Show quoted text> Most loggers take arrays as arguments. The difference is mainly in how
> they join the elements of the array. For instance Log::Handler joins
> them with space, while Log::Log4perl concatenates the strings just
> like print @array does. You would then have the option of inserting
> timestamp/level/facility/caller, etc. in one go.
>
> I guess one of my options is writing an adapter that does this, then.
Taking a single string is least common denominator for something like Log::Any.
However, I'm in the middle of a substantial revision to Log::Any that will make it easy to add your own formatting code, so if you want to take arrays and join them somehow, you can do that trivially without needing to mess with an Adapter class. I need to write some docs and test it before I ship it, but you can see the work in progress here:
https://github.com/dagolden/Log-Any