On Thu, Dec 21, 2017 at 3:45 PM, Remko Popma wrote:
> I suppose that was done for the streams module, to allow installing Log4j2
> on jdbc drivers.
>
Correct. I wrote a JDBC driver that uses Log4j 2 but this is useful for any
JDBC Driver where you want that driver to log
I suppose that was done for the streams module, to allow installing Log4j2 on
jdbc drivers.
(Shameless plug) Every java main() method deserves http://picocli.info
> On Dec 22, 2017, at 4:55, Ralph Goers wrote:
>
> This one has me stumped. I don’t recall when
This one has me stumped. I don’t recall when OutputStreamAppender or
WriterAppender were added or why but they are unlike any other Appenders. The
documentation on OutputStreamAppender is wrong by the way, It says it is used
by other Appenders but that isn’t the case. All the other use
Hello Ralph,
thank you for your answer. That worked for the most part!
However using the CompnentBuilder i am not able to create an
OutputStreamAppender.
I looked into the Code and the internal Builder Classes of the
OutputStreamAppender and the WriterAppender are defined differently
What you need to know is that with the ConfigurationBuilder everything is
really a Component. Since Layouts, Appenders, Filters and Loggers are so common
we have built specialized ComponentBuilders for them, but they could also be
constructed with a generic ComponentBuilder.
Hello there,
getting accustomed with log4j 2. It is awesome so far. However, i can't
figure out how to create a routing logger with the ConfigurationBuilder
API. I came this far:
AppenderComponentBuilder routingAppender =
builder.newAppender("Routing", "Routing");
And then what, how do you