chandrabol commented on issue #2966: URL: https://github.com/apache/logging-log4j2/issues/2966#issuecomment-2360210805
Upgraded to 2.24.0. Getting this message - `2024-09-19T07:28:20.687326Z main WARN The use of package scanning to locate Log4j plugins is deprecated. Please remove the `packages` attribute from your configuration file. See https://logging.apache.org/log4j/2.x/faq.html#package-scanning for details. 2024-09-19T07:28:20.687549Z main WARN Some custom `Core` Log4j plugins are not properly registered: io.sentry.log4j2.SentryAppender Please consider reporting this to the maintainers of these plugins. See https://logging.apache.org/log4j/2.x/manual/plugins.html#plugin-registry for details. ` Pom.xml - ` <log4j2.version>2.24.0</log4j2.version>` Log4j2.xml - `<?xml version="1.0" encoding="UTF-8"?> <configuration status="warn" packages="org.apache.logging.log4j.core,io.sentry.log4j2"> <Properties> <Property name="instant">false</Property> <Property name="LOG_LEVEL">INFO</Property> <Property name="XRAY_LOG_LEVEL">WARN</Property> <Property name="AUDIT_LOG_LEVEL">TRACE</Property> </Properties> <appenders> <Console name="Console" target="SYSTEM_OUT"> <JsonTemplateLayout eventTemplateUri="classpath:logStructure.json" locationInfoEnabled="true"/> </Console> <Console name="Audit" target="SYSTEM_OUT"> <PatternLayout pattern='%m%n'/> </Console> <Sentry name="Sentry" /> </appenders> <Loggers> <AsyncLogger name="com.gravty.framework.audit" additivity="false" level="TRACE" includeLocation="true"> <AppenderRef ref="Audit" level = "${env:AUDIT_LOG_LEVEL}"/> </AsyncLogger> <AsyncLogger name="com.gravty" additivity="false" level="DEBUG" includeLocation="true"> <appender-ref ref="Console" level = "${env:LOG_LEVEL}"/> <appender-ref ref="Sentry" level="ERROR" /> </AsyncLogger> <AsyncLogger name="com.amazonaws.xray" additivity="false" level="WARN" includeLocation="true"> <appender-ref ref="Console" level = "${env:XRAY_LOG_LEVEL}"/> </AsyncLogger> <AsyncRoot level="WARN" additivity="false" includeLocation="true"> <appender-ref ref="Console"/> </AsyncRoot> </Loggers> </configuration>` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
