You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to track logs per each specific run of a function with a uuid parameter. Is there a way to make sure all logs get accumulated within array, which I could empty for each run? Ideally with access to all parameters that were passed while logging: Str, Int (custom values while logging). I tried Hooks but they only have the Event struct, which doesn't contain all the data
The text was updated successfully, but these errors were encountered:
I have made #583 with a more concrete proposal to support such "batching" (or what you call accumulation). I also think it would be nice to be able to batch log lines together while exposing same "logger" interface to the code.
With a writer it is a problem because you are operating already on JSON so you you have to parse/modify/marshal. Also it is a problem that you do not necessary have all the information anymore (for example, when exactly has the logging for the request finished, you have to guess that from log lines or add some sentinel log line or something).
I'm trying to track logs per each specific run of a function with a
uuid
parameter. Is there a way to make sure all logs get accumulated within array, which I could empty for each run? Ideally with access to all parameters that were passed while logging:Str, Int
(custom values while logging). I tried Hooks but they only have the Event struct, which doesn't contain all the dataThe text was updated successfully, but these errors were encountered: