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
You can also check out and build that module yourself. The repository is here:
https://github.com/apache/logging-log4j-tools
It is ready for release, there are no outstanding tickets on that module.
(Shameless plug) Every java main() method deserves http://picocli.info
> On Dec 12, 2017, at
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
Yes by default the application thread will block until a slot becomes available
in the queue.
Yes this is configurable: see
https://github.com/apache/logging-log4j2/blob/master/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncQueueFullPolicyFactory.java
(Shameless plug) Every
Hmm, i doint use programic configuation, is there a way i can use the prevous
configuation which is merged in when i load the file?
On Wednesday, 20 December 2017, 16:41:35 GMT, Matt Sicker
wrote:
Manually managing configurations along with a config file sounds
I’m not sure what that means.
The original configuration was loaded. Somehow it was modified
programmatically. Then someone changed the configuration file and it needs to
be reloaded. How are you supposed to know how to reconcile the changes made
programmatically against the changes made to
I think i found a way to do this. Without reloading a file or using any
reconfigure methods.
I can use for example
ConfigurationBuilder builder =
ConfigurationBuilderFactory.newConfigurationBuilder();
builder.add(builder.newLogger("org.apache.mina", Level.WARN));
builder.build();
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