Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not to log class name #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yaojingguo
Copy link

Now, the log message contains the class name:
2021-12-19 22:59:31,787 ERROR [main] org.fluentd.logger.sender.RawSocketSender
java.net.ConnectException: Connection refused (Connection refused)

Since log frameworks usually have a way to log class name without the
need to include it in the log message, the class name should be removed.
The following text shows a sample log mesage after this change:

2021-12-19 22:56:58,842 ERROR [main] flush failed
java.net.ConnectException: Connection refused (Connection refused)

Now, the log message contains the class name:
  2021-12-19 22:59:31,787 ERROR [main] org.fluentd.logger.sender.RawSocketSender
  java.net.ConnectException: Connection refused (Connection refused)

Since log frameworks usually have a way to log class name without the
need to include it in the log message, the class name should be removed.
The following text shows a sample log mesage after this change:

  2021-12-19 22:56:58,842 ERROR [main] flush failed
  java.net.ConnectException: Connection refused (Connection refused)

Signed-off-by: Jingguo Yao <yaojingguo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant