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

Cannot initialize logger appender #4

Closed
Vistritium opened this issue Jan 18, 2018 · 3 comments
Closed

Cannot initialize logger appender #4

Vistritium opened this issue Jan 18, 2018 · 3 comments

Comments

@Vistritium
Copy link

Vistritium commented Jan 18, 2018

I'm using slf4j with logback. I created custom FileAppender and I wanted to select destination of log file using appdirs. Unfortunately the lib uses the logging itself so it became an circular dependency - my appender needs appdirs, appdirs needs logging and logging needs my appender. Not sure how to address this issue.

@harawata
Copy link
Owner

Thank you for the report, @Vistritium !

This is actually a SLF4J/Logback question and I am not sure how to solve it.
Why don't you ask it on their mailing list?
As it seems like a common use case (i.e. a custom appender that uses another component which also uses SLF4J for logging), I'm pretty sure that you will get some answers if you show them your appender code.

@Vistritium
Copy link
Author

Thanks for response.
Ok, I'll try to resolve issue looking around SLF4J/Logback.

@harawata
Copy link
Owner

harawata commented Jan 26, 2021

In case someone find this issue...
This problem should be resolved in version 1.2.1.

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

2 participants