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've been trying to make a new handler to submit log entries to Sentry (a la raven) using the new {{logger}} API. I'm struck by a few things:
* The new features such as overload protection rely on implementing callbacks for an undocumented behaviour ({{logger_h_common}}).
* Logger specifies certain helpers for formatters, but the handler is responsible for calling them.
* The formatter isn't actually used at all for OTP messages, even in the default loggers.
* Using {{error_logger}} doesn't get the overload protection features, as it doesn't actually use {{logger_h_common}}.
I think I've just about cobbled together something that works, but I think it'd be great if this module could "come out of the woodwork" and be a real tool to aid developers in development of logger handlers – especially as I'm going to be using an undocumented API!
(Overload protection is necessary in this case because it's going to need to do HTTP requests for each message to a server than may be poorly. I'm reluctant to use {{httpc}} because it doesn't document its {{\{sync, true\}}} behaviour – I don't want to bother any other users of that module, not allow unbounded parallelism!)
The text was updated successfully, but these errors were encountered:
Original reporter:
bucko909
Affected version:
Not Specified
Component:
Not Specified
Migrated from: https://bugs.erlang.org/browse/ERL-1197
The text was updated successfully, but these errors were encountered: