log4j


How to handle “org/apache/log4j/Level” class used in 3rd-party jar when using log4j2?


As we know, org/apache/log4j/Level is a log4j api, but not log4j2.
But in my case,hadoop-mapreduce-client-core-2.7.2 jar used Level class in its static code. So it will give a ClassNotFound exception if I use log4j2.
Anyway to handle this?
You can use the Log4j 1.x bridge.
For more information, See Migrating from Log4j 1.x.

Related Links

slf4j-log4j bridge with log4j 2.8.1
logging to ELK stack from karaf
Changing Log4J configuration in Tibco BW/Designer does not have the desired effect
Write to SYSLOG with RootLogger OFF
How to write separate log files for each error transactions in Java using log4j
log4j on jboss - subpackage level
converting log4j into log4j2. With RollingFileAppender, size and file name pattern
Log4j NoSQL/Mongo appender in Tibco BusinessWorks 5
jcl104-over-slf4j version 1.4.2 is safe to be replaced by jcl-over-slf4j 1.7.2
Log4j2 main ERROR AmazonRollingRandomAccessFile contains an invalid element or attribute
Is it possible to set an SMTP header in SMTPAppender?
log4j rotate and compress files
Log4J 2 failing to configure
log4j not writing logs to a file
Log4J : Console Error in log4j.xml
log4j is not creating .gz file

Categories

HOME
xamarin
cookies
ngrx
react-router
q
cvs
windows-server
spring-kafka
floating-action-button
modelica
phaser
static-libraries
tostring
pugjs
evopdf
text-rendering
extjs5
restful-authentication
dxf
intel-pin
greendao
fifo
elasticsearch-ruby
tasklet
skia
tinymce-4
hybridauth
cloud-code
normal-distribution
dartium
event-driven
trim
graphenedb
email-templates
google-closure
btrace
azure-application-gateway
errordocument
jquery-validate
np-complete
windows-mobile-6.5
migradoc
cubes
nsfilemanager
apachebench
nessus
pervasive-sql
ios8-today-widget
prerequisites
python-3.2
mutation-observers
ideamart
splash
web-controls
p2
notify
java.util.concurrent
xcode-6.2
code-access-security
zend-route
terminfo
reactfx
mysql-error-1062
java.nio.file
monomac
c18
rabl
type-equivalence
browser-detection
bitsharp
mt
onsubmit
online-compilation
subscript
fireworks
coercion
imac
remember-me
revisions
compiler-specific
noscript
pascal-fc
aquaticprime
msdev
wsdl.exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App