4,498 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
134
views
Spring Boot and Log4J database appender problems
We have a situation where we need to write the logs from an app running in multiple pods on an OpenShift project to the database so I slapped together a quick database logging POC with log4j2, and got ...
0
votes
1
answer
97
views
MuleSoft logger component error at anypont RTF
I am using mulesoft logger component at my project, at local it works well
but at prouduction env (RTF) I always get below error, although I could see log output as well
ERROR StatusConsoleListener ...
0
votes
1
answer
136
views
java.lang.ClassCastException: org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext [duplicate]
We are currently checking if we will migrate our services with Graal VM and I'm working on a POC to check if evrything will work fine. Our services are using log4j2 to log and no matter what I do I ...
0
votes
2
answers
162
views
Application still prints Logback logs instead of Log4j2 after migration
I migrated my Spring Boot application from Logback to Log4j2, but the application is still printing logs using Logback.
What I did so far:
Added Log4j2 dependencies:
org.springframework.boot
...
0
votes
0
answers
37
views
How to use log4j binding in cassandra 5.0
I had been using log4j binding in cassandra version 4. But this isn't working in cassandra 5.0. Getting this exception on startup.
org/apache/cassandra/utils/vint/VIntCoding.writeVInt32(ILorg/apache/...
0
votes
0
answers
46
views
Log4j Upgrade v1 to v2 - Default SysLog Behavior
Working on a legacy code base that literally no one left at the company has done anything more than put band-aids on in my time there.
For various reasons we are finally being forced to upgrade log4j ...
0
votes
0
answers
112
views
Send email only for a specific exception (ConfigException)
I want Log4j2 to send an email only when a ConfigException is logged. All other exceptions should be ignored by the email appender.
Here is a minimal example:
log4j2.xml
<Configuration>
<...
2
votes
2
answers
137
views
Set log levels per class with AWS Managed Apache Flink
This question is specific to AWS Managed Flink (1.19).
I know how to control logging in most Java apps,
but everything I know is failing in this case.
I have a Java application running in Amazon ...
2
votes
1
answer
76
views
Defining Log4j loggers in both the main `.xml` file and through `XInclude`
I'm having trouble understanding the priority of Log4j loggers when they are defined both in the main .xml file and in files included via the xi:include element. All the XInclude examples I've seen so ...
1
vote
1
answer
150
views
log4j isn't working on my Spring Boot project
I'm working on a project using Spring Boot 2.x, Log4j,Tomcat 9 and JDK 8. The application runs exclusively on our company's intranet, not the internet. Because of this, security isn't a major priority,...
5
votes
1
answer
169
views
Is it possible to route Logback logging to SLF4J in a Log4j2-based project
My project uses SLF4J with Log4j2, but recently I introduced a dependency that uses Logback for logging and DOES NOT use SLF4J. The dependency's code includes the following import:
import ch.qos....
0
votes
1
answer
62
views
How does log4j clean up actually works in hive metastore?
I am trying to configure logs for hive metastore. I use this config:
status = INFO
name = HiveLog4j2
packages = org.apache.hadoop.hive.ql.log
property.hive.log.level = INFO
property.hive.root.logger =...
1
vote
1
answer
114
views
Mule 4.9 JMS appender error: Modules javax.jms.api and jakarta.jms.api export package javax.jms to module org.eclipse.sisu.inject
I am new to mule and trying to push logs to activemq queue using jms appender. I was getting error while using jms appender with mule 4.3
2025年06月05日T07:02:25.588889200Z WrapperListener_start_runner ...
1
vote
1
answer
67
views
SpringConfigurator uses uninitialized Log4j2
I'm trying to use SpringConfigurator to configure websocket endpoint. In theory, it should be as simple as:
@ServerEndpoint(value = "/my-endpoint", configurator = SpringConfigurator.class)
...
0
votes
1
answer
55
views
Java Exception on CryptoProviderTools.installBCProvider() instruction using log4j2
I have a java web project which includes lo4j2. It is deploy on tomcat instance locally on my PC.
I was debugging the java project. When debugger is on the instruction of Certificate class contructor ...