79620842

Date: 2025-05-14 06:39:51
Score: 3
Natty:
Report link

I found an solution

I created a custom sink this way:

enter image description here

in constructor, I initialize the loggers with AuditTo not WriteTo. AuditTo raises an exception when there is an error.

enter image description here

Finally, I implement a try-catch block in the Emit function

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: mister