This is an automated email from the ASF dual-hosted git repository.

rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave.git


The following commit(s) were added to refs/heads/master by this push:
     new 5a70c4a  mention in graalvm section how to disable log4j2 and tomcat 
scanning
5a70c4a is described below

commit 5a70c4ac50c3c98d43d2209bf984828a1ccbbe1b
Author: Romain Manni-Bucau <rmannibu...@gmail.com>
AuthorDate: Sun Mar 21 18:45:50 2021 +0100

    mention in graalvm section how to disable log4j2 and tomcat scanning
---
 meecrowave-doc/src/main/jbake/content/howto.adoc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meecrowave-doc/src/main/jbake/content/howto.adoc 
b/meecrowave-doc/src/main/jbake/content/howto.adoc
index 6727668..2890ed7 100755
--- a/meecrowave-doc/src/main/jbake/content/howto.adoc
+++ b/meecrowave-doc/src/main/jbake/content/howto.adoc
@@ -691,6 +691,15 @@ In terms of dependencies you can start with this for 
example:
 </dependencies>
 ----
 
+Last step is to disable log4j2 and tomcat scanning by default - indeed 
previous setup works if passed on the command line but since it is always the 
same settings it is saner to put them in a `meecrowave.properties` in the 
classpath:
+
+[source,properties]
+----
+tomcat-scanning = false
+logging-global-setup = false
+log4j2-jul-bridge = false
+----
+
 TIP: using a profile or a binary dedicated module you can keep the JVM mode 
using Log4j2 and the native mode using Yupiik Logging (just tweak dependencies 
and optionally use arthur exclude configuration).
 
 TIP: an Arthur knight can be developed to replace all that configuration, it 
will auto-setup meecrowave/cxf/tomcat needed reflection, scan present tomcat 
and cxf bundles, auto register CXF SPI (bus-extensions.txt - optionally 
filtering them and the not loadable ones) classes for reflection, spec classes 
(`org.apache.cxf.jaxrs.utils.InjectionUtils.STANDARD_CONTEXT_CLASSES`), and 
likely inherit from openwebbeans extension CDI integration.

Reply via email to