New modules: custom loggers

273 views
Skip to first unread message

Lorenzo Miniero

unread,
Nov 27, 2019, 9:03:41 AM11/27/19
to meetecho-janus
Hi all,

since 0.8.0, there's a new category of modules in Janus: custom loggers. These basically allow you to handle logging in Janus your own way, instead of (or besides) printing to stdout or saving to file as we do now. By default we only have a proof-of-concept module that saves each log line as a JSON object: so pretty useless, but should help people work on more useful and interesting loggers in the future, which I'm looking forward to see!

You can find details in the pull request where this was added: https://github.com/meetecho/janus-gateway/pull/1814/

As you can see in the text there, we're already working on a module that should make it easier to send logs to a Homer instance. I know people use different tools for logging (Kafka seems to be a common choice), so I hope people will start contributing their modules to Janus soon.

Thanks,
Lorenzo

Oskar Niburski

unread,
Dec 3, 2019, 10:07:37 PM12/3/19
to meetecho-janus
Hey Lorenzo,

This looks great. If we wanted to get a head start on using the new plugin to Homer, is it best to wait a bit?

Lorenzo Miniero

unread,
Dec 4, 2019, 5:19:28 AM12/4/19
to meetecho-janus
I eventually merged the modular loggers, but without the Homer one, since I didn't have time to test the HEP logger (UDP and TCP), and the one on HTTP would require some changes in HEpop that I'd have to discuss with Lorenzo (Mangani) first. The plan was to make the Homer logger available as a separate pull request, though, so if you'd like to test and provide feedback, I'll add it soon.

Lorenzo

Lorenzo Miniero

unread,
Dec 4, 2019, 6:10:35 AM12/4/19
to meetecho-janus
Added here, so feedback welcome! https://github.com/meetecho/janus-gateway/pull/1886

L.
Reply all
Reply to author
Forward
0 new messages