java - How to get rid of the "Class path contains multiple SLF4J bindings" warning? -
this more-or-less "common" question, however, haven't managed find reply yet. so, again, here warning:
slf4j: class path contains multiple slf4j bindings. slf4j: found binding in [jar:file:/home/eualin/.m2/repository/org/slf4j/slf4j-jcl/1.6.0/slf4j-jcl-1.6.0.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: found binding in [jar:file:/home/eualin/.m2/repository/org/slf4j/slf4j-log4j12/1.5.11/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: see http://www.slf4j.org/codes.html#multiple_bindings explanation.
and here 2 potential solutions problem [1][2].
assuming both work me, obviously, hacks, , not sure if should rely on of them @ all. recommend me? maintain in mind warning not appear when in terminal; when run application through intellijidea.
any suggestion highly appreciated.
slf4j expects 1 version of staticloggerbinder nowadays in application runtime. if there more one, slf4j cannot guarantee log messages routed appropriate logger.
the architecture of slf4j requires 1 library used route log messages (e.g. slf4j-<logging framework>.jar
). when multiple classpath's in play via application servers, ide's, startup scripts, etc., slf4j libraries can included multiple times. may have hunt , peck find classpath's either beingness added or modified in intellijidea (such in configured java compilers or in startup configurations).
java warnings slf4j
No comments:
Post a Comment