Questions Tagged [Log4J]

log4j is a popular Java-based logging utility. It is a project of the Apache Software Foundation and is licensed under The Apache Software License, Version 2.0

9,393 questions
0 votes
0 answers
7 views

Corda log to console/standard out

Can't seem to get Corda nodes to log to their console/shell(?) while they are running. Originally used System.out.println which did log, but the output gets messed up which is making me think the ...
0 votes
0 answers
18 views

ServletContainerInitializer ignored by Tomee because of jar name and web-fragment "ordering"

The library I'm maintaining contains a implementation of ServletContainerInitializer which is declared in META-INF/services/javax.servlet.ServletContainerInitializer file. This library is used by web ...
0 votes
0 answers
16 views

PropertyConfigurator.configure() method in log4j1.x is causing problem in magration to log4j2.X

we are migrating from log4j 1.x to log4j2.x. during migration we are facing an issue with PropertyConfigurator.configure() method is not available in log4j2.x. what will be the alternative way to ...
1 vote
0 answers
22 views

Log4j vulnerability while using Scala and Spark with sbt

I am working on a scala spark project. I am using below dependencies: libraryDependencies ++= Seq( "org.apache.spark" %% "spark-core" % "2.2.0" , "...
0 votes
1 answer
15 views

How to display Just D, I, E, F instead of DEBUG, INFO, ERRO, FATAL in log4j

we are trying to optimize the size of files generated by log4j2. So I was thinking if we can reduce the number of characters that get printed on the final .log file. Below is thecurrent pattern layout ...
  • 400
0 votes
0 answers
13 views

How to upgrade log4j in 3rd party jar used as dependency in project pom?

We use jericho 3.3 that has log4j 1.2.17 as transitive dependency. We plan to upgrade to 2.17.1 for all 3rd party as well as direct dependencies. Jericho 3.4 the latest has log4j api 2.4, how can we ...
0 votes
0 answers
10 views

log4j datestamp is 1 day behind

Here is the corresponding RollingFileAppender. We are running Log4j 2. <RollingFile name="file" fileName="appLog" filePattern="appLog.%d{yyyyMMdd}.%i" append="...
0 votes
0 answers
21 views

Can I use log4j.properties file name instead of log4j2.properties in log4j version 2 in spring?

I have a spring application which uses latest version of log4j2 (ie. log4j 2.17.2). Generally, we use log4j2.properties file for logging configuration. But my requirement is to use the old name "...
0 votes
0 answers
11 views

My logger don't write into my log (Log4j)

I try to setup Log4J for my project, i use my code Logger.Debug, but it not writing into log. Log4J.xml : <appender name="file" class="org.apache.log4j.RollingFileAppender"> ...
0 votes
1 answer
19 views

Jmeter ServerAgent cannot run, some problem of log4j

windows10 jmeter5.4.3 Server Agent2.2.3 When I use .\startAgent.bat, there will be: log4j:WARN No appenders could be found for logger (kg.apc.perfmon.PerfMonWorker).log4j:WARN Please initialize the ...
0 votes
0 answers
8 views

system property not replaced with the date and time for new log4j log filename for every run

I have the below lines as part of log4j.properties file. property.filename=logs appenders=file appender.file.type=File appender.file.name=LOGFILE appender.file.fileName=${filename}/propertieslogs_${...
  • 115
0 votes
0 answers
7 views

How to exclude package from the jar which is native?

I'm using avro-tools 1.9.2 in my project and due to some reason can't even update it. I see that avro-tools 1.9.2 using the old log4 1.x API natively (its not a transitive dependency instead its ...
  • 9,343
0 votes
1 answer
23 views

Is slf4j 2.0.0-alpha7 compatible with log4j 2.17.2?

My problem is extremely similar to the one outlined in this post (it is unanswered): Is SLF4jJ 1.8.0-alpha2 compatible with Log4j 2.8.2. I am trying to upgrade from slf4j 1.7.36 to 2.0.0-alpha7. ...
0 votes
1 answer
25 views

Cannot get log4j.properties to work with Gradle project in IntelliJ

I am building a Gradle-based Java project using IntelliJ as my IDE. I can output log information to my console, as long as it is outputted to INFO. WARN and ERROR also seems to work by default. ... ...
1 vote
0 answers
56 views

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger

I am using custom log4j2 library - corporate library, company specific, I created fat jar out of maven project and trying to run the code commandline java -jar "target\abc-0.0.1-SNAPSHOT.jar"...
  • 6,694

15 30 50 per page
1
2 3 4 5
…
627
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest