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

Added logLoggerAppName parameter in SystemdJournalAppender #13

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

Conversation

MMaiero
Copy link

@MMaiero MMaiero commented Oct 20, 2020

We have added the possibility to specify, in the log4j file, the name of the Application logging using this appender in order to have that name reported in the journal key for the logger. In this way, if specified by the user, instead of having the key LOG4J_LOGGER the journal will be filled with APPNAME_LOGGER where APPNAME is specified in the log4j file by the logLoggerAppName attribute.

* Changed LoggerName string
* Changed LoggerName string in test

Signed-off-by: pierantoniomerlino <pierantonio.merlino@eurotech.com>
@bwaldvogel
Copy link
Owner

bwaldvogel commented Nov 15, 2020

Your PR contains import order and formatting changes that I wouldn’t like to merge.

Also: Why would you want to change the journal key instead of setting syslogIdentifier to the name of the application?

@MMaiero
Copy link
Author

MMaiero commented Nov 18, 2020

Hi, thank you for the reply.

For the import order and formatting changes, you are right. I can review the commit to remove those changes.

Regarding the journal key for the logger it was mainly a request to be able to change it and have something more "tied" to the application instead of having LOG4J_LOGGER reported. Yes, we are using also the syslogIdentifier.

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.

3 participants