Implement a callback listener.

User can inject a callback listener to be called when successfully send
each log.