fluent-logger-java
fluent-logger-java copied to clipboard
enable some asynchronous logging
AsyncRawSocketSender is just a wrapper around RawSocketSender that does its work in a separate thread.
also added a factory method to create a logger with its own sender, and moved from using a synchronized method to using a synchronizedMap for the loggers.
Thanks for the PR and sorry for my late reply.
I looked at the PR and I found that AsyncRawSocketSender.emit() and flush() create anonymous Runnable every time. It can cause a poor performance.
So I think we'd better use consumer-producer model to implement async sender. What do you think?
sorry for the late reply. yes, performance might be an issue. but i think i'd rather let someone else do that refactoring. i am currently in the middle of a different task at work, which no longer has anything to do with AsyncRawSocketSender.
changed to nested classes.
@komamitsu @mxk1235 can this PR be revived? Could we handle the concerns Mitsunori Komatsu had