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

Use Marker as Android tag #3

Open
ppkarwasz opened this issue Oct 10, 2024 · 0 comments
Open

Use Marker as Android tag #3

ppkarwasz opened this issue Oct 10, 2024 · 0 comments

Comments

@ppkarwasz
Copy link

Currently log4j2-android uses the last fragment of a logger's name (e.g. MyActivity if the logger's name is foo.bar.MyActivity) as Android Log tag.

As far as I understand Android Log tags fulfill the same function as Log4j API markers. You might want to consider using those as tags, with a reasonable default (LOG4J?) if the marker is not provided.

Markers are also supported by at least SLF4J and the log4j-slf4j-impl/log4j-slf4j2-impl bridges translate them to Log4j API markers. I recently modified commons-logging (which does not support markers) to use a single COMMONS-LOGGING marker (see Log4jApiLogFactory.

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

No branches or pull requests

1 participant