larvit / larvitsmpp

SMPP made simple
MIT License
7 stars 7 forks source link

Add socket remote host and port to log messages #8

Open lillem4n opened 8 years ago

lillem4n commented 8 years ago

For traceability it would be very valuable. When several clients are connected the log gets spammed and it is hard to follow a single clients session.

qasimakhan commented 8 years ago

You can add client ID in the logs and filter them from there on...

lillem4n commented 8 years ago

Yes, that is an even better idea! I'd like client ID and at least the IP though, since many times when searching the logs you save some time by simply filter on the clients ID no need to look up the session ID. Especially irritating would be if the client and server keeps reconnecting so the ID changes all the time. :)