Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
vertx:log4j [2021/12/28 17:00] alex |
vertx:log4j [2022/01/08 06:20] 162.158.183.238 old revision restored (2022/01/08 05:38) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ** note that this article is outdated as it refers to vert.x 2 ** | ||
- | |||
- | |||
==== How to use vert.x logging with Log4j and slf4j ==== | ==== How to use vert.x logging with Log4j and slf4j ==== | ||
Line 12: | Line 9: | ||
I personally usually use slf4j and log4j as backend for development (and simple logger for live systems, though I do not really have much of " | I personally usually use slf4j and log4j as backend for development (and simple logger for live systems, though I do not really have much of " | ||
+ | === Running in maven === | ||
+ | |||
+ | mvn package vertx: | ||
+ | g4jLogDelegateFactory -Dlog4j.ignoreTCL=true | ||
+ | |||
+ | should work around an problem in maven causes an error | ||
+ | log4j:ERROR A " | ||
+ | log4j:ERROR The class " | ||
+ | log4j:ERROR [ClassRealm[plugin> | ||
+ | log4j:ERROR " | ||
+ | log4j:ERROR Could not instantiate appender named " | ||