Ask Question

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

0votes0answers7views

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 ... user avatar Kiith Nabaal

  • 358
0votes0answers18views

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 ... user avatar Simon Hill

  • 11
0votes0answers16views

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 ... user avatar swapnil dahule

  • 21
1vote0answers22views

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" , "... user avatar Sangeeta

  • 471
0votes1answer15views

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 ... user avatar chen

  • 400
0votes0answers13views

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 ... user avatar Sudipto Saha

  • 11
0votes0answers10views

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="... user avatar uniqueuser-programmer

  • 41
0votes0answers21views

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 "... user avatar Ravi Kumar B

  • 1,393
0votes0answers11views

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"> ... user avatar tuniodu33

  • 5
0votes1answer19views

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 ... user avatar user19330066

  • 1
0votes0answers8views

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_${... user avatar saran

  • 115
0votes0answers7views

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 ... user avatar PAA

  • 9,343
0votes1answer23views

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. ... user avatar ConfusedUbuntist

  • 63
0votes1answer25views

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. ... ... user avatar Kurtiss

  • 395
1vote0answers56views

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"... user avatar Jeff Cook

  • 6,694

153050per page

1 2 3 4 5627