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

Flink with High-availability with zookeeper: Submitted job is not acknowledged by Job manager
SoapUI does not change log file name/path after changes in soapui-log4j.xml
How to export lo4j from Ambari?
Log4j don't catch javax.el exception
'infinispan-core' not showing logs
Tomcat log each application into separate file
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

Categories

HOME
java
webpack
urbancode
mfc
homebrew
lodash
webstorm
adb
webpack-2
networkx
google-translate
row
google-cloud-ml
dynamics-crm-online
saxon
footer
nhibernate-envers
jtextfield
predix
google-search-api
opennlp
tooltipster
fopen
maquette
c++-amp
microsoft-chart-controls
socialengine
azure-sql-database
form-data
environment-modules
mapdb
html5-fullscreen
azure-ml
cookiecutter-django
user-controls
sfdc
g-code
dynamic-reports
glew
nxlog
password-encryption
unixodbc
angular-resource
powercli
elgg
lift-json
python-cryptography
flutterwave
objective-c-swift-bridge
ableton-live
intrusion-detection
angstrom-linux
freedesktop.org
jfugue
xna-4.0
tableau-online
sysinternals
mmc
facebook-graph-api-v2.4
dd
neolane
jquery-layout
rtmfp
soundtouch
shellexecute
sabredav
lcs
simba
manchester-syntax
jspinclude
dbproviderfactories
postgresql-performance
ohm
nsdatecomponents
whoosh
fireworks
mercurial-server
gnu-prolog
xdomainrequest
locationlistener
yetanotherforum
appendto
calling-convention
pyinotify
xfbml
h.323
mozilla-prism
firefox-5
phonon
premature-optimization

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