logtron icon indicating copy to clipboard operation
logtron copied to clipboard

Lazy evaluation of meta.

Open kriskowal opened this issue 10 years ago • 0 comments

@jcorbin insists that some logging meta is expensive to construct and should only be constructed when the log channel is being consumed. To that end, consider accepting a function instead of an object on meta property of log entries, replacing meta with the result of meta only if the channel is consumed.

kriskowal avatar Feb 23 '15 19:02 kriskowal