Closed melihcoban closed 2 months ago
The documentation is incorrect, but I'm going to update it soon. Use args
instead of handlerArgs
@megahertz Hi, using ({ args, event, eventName, eventSource })
gives the correct information but there is Type errors while using the function like this.
Property 'args' does not exist on type '{ eventName: string; eventSource: EventSource; handlerArgs: unknown[]; }'.ts(2339)
,
Property 'event' does not exist on type '{ eventName: string; eventSource: EventSource; handlerArgs: unknown[]; }'
the types will be updated in a few days
I'm having issues with eventLogger.format functions.
How to access event itself in eventLogger.format function? For an example, in the event of 'render-process-gone', handlerArgs are undefined. I can only access event source or event name but not the reason.
This function gives error because handlerArgs is not iterable, and application crashes.
I tried string templates, but eventArgs is not filled here as well.
This is output of the above format. Properties and values is not valid format, does not have double quote around them.
This is what I want to achieve
Is it achievable? Thanks for help.