Closed benjavalero closed 3 years ago
Hi @benjavalero Is the appender on debug mode?
Hi @benjavalero Is the appender on debug mode?
Sorry, I am not sure what are you asking me about. I have used the appender configuration as recommended in the documentation (token obfuscated):
<appender name="LogzioLogbackAppender" class="io.logz.logback.LogzioLogbackAppender">
<token>xxxxxxxxxxxx</token>
<logzioUrl>https://listener-eu.logz.io:8071</logzioUrl>
<logzioType>java</logzioType>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
</filter>
</appender>
Please note again that this error happens on compilation time. Thanks again.
Could you please try and run with these configurations:
`
<logzioUrl>https://listener-eu.logz.io:8071</logzioUrl>
<logzioType>java</logzioType>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
</filter>
`
So we could get more context information Thanks
Could you please try and run with these configurations:
<appender name="LogzioLogbackAppender" class="io.logz.logback.LogzioLogbackAppender"> <token>YOURTOKEN</token> <logzioUrl>https://listener-eu.logz.io:8071</logzioUrl> <logzioType>java</logzioType> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>DEBUG</level> </filter> </appender>
So we could get more context information Thanks
Thanks for your help. Nevertheless the configuration you have given is exactly the same one I am applying (see my previous comment).
Anyway I guess it is not a problem with the appender itself, but something strange with the dependencies which have been shaded in the package since version 1.0.24.
Honestly I have no idea why this happens. Just for curiosity, why shading some dependencies instead of simply declaring them in the POM as usual in Maven?
Sorry, I thought I added the debug option but I just copy-paste yours with no changes.. This is the config you should use to get debug logs:
<appender name="LogzioLogbackAppender" class="io.logz.logback.LogzioLogbackAppender">
<token>xxxxxxxxxxxx</token>
<logzioUrl>https://listener-eu.logz.io:8071</logzioUrl>
<logzioType>java</logzioType>
<debug>true</debug>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
</filter>
<root level="debug">
<appender-ref ref="LogzioLogbackAppender"/>
</root>
</appender>
We shaded some dependencies to prevent collisions with outer dependencies from the parent project
I am closing this issue because I cannot reproduce it anymore after removing the module-info.java file (not actually needed) from my project and also removing the AspectJ plugin which was causing the problem. I am also using now version v1.0.25 (yes, with a v, I guess this is right).
Thanks for the help.
I have just started using Logz.io so I have added the
logzio-logback-appender
dependency to my Java project.In this project I am using AspectJ to add behaviour to some methods. However on compilation time there is an error with one of the shaded dependencies of the appender. The application starts but no aspect is applied:
The rest of the error: ajcore.20201124.181250.487.txt
Curiously everything works fine with version 1.0.23, so at least I am not blocked.
Any hint?
Thanks in advance,