grisp / dgram_logger

Generic datagram logger which sends to various UDP based logging infrastructure
Apache License 2.0
7 stars 1 forks source link

Start the gen_server from handler_added instead the other way round #8

Closed peerst closed 5 years ago

peerst commented 5 years ago

And store the pid in the handler, also shut down the gen_server if the handler is removed.

eproxus commented 5 years ago

Should be started here: https://github.com/grisp/dgram_logger/blob/master/src/dgram_logger.erl#L20 Then socket can be requested and put into Config.

eproxus commented 5 years ago

Handlers are no longer added as from 9476009726ceb401049f12c1d3e5801cebbb303b.

eproxus commented 5 years ago

Separate process and socket started for each handler added in 1067301a97f7dccc7d22c2aabb04d517adbda146.