fluent/fluent-logger-java

Issues in log function of FluentLogger class

iampiyush opened this issue · 2 comments

Issues in latest version (0.3.1)

public boolean log(String tag, Map<String, Object> data)

This function never returns false, even if we don't have valid host name.

flush function in RawSocketAppender class doesn't have any return type. So if there is IO Exception, this function will catch it , logs it , but no signal send to caller. Hence, log function will be returning true , even if we are not able to write. (Line no. 178-192 )

I think you can use isConnected() to see if the logger is still connected with a fluentd or already disconnected due to a error for now. See #29. Also, we plan to implement an error handler interface and the user can receive errors via a callback.