Configure WildFly logging with a Galleon layer

224 views
Skip to first unread message

Bastian Fredriksson

unread,
Dec 11, 2023, 11:30:18 AM12/11/23
to WildFly
Hello WildFly peeps!

I'm playing around with Galleon feature packs and trying to write my own Galleon layer [1] to add some additional logging configuration to standalone.xml. But I don't quite get the syntax 😕

Suppose I have the JBoss CLI command /subsystem=logging/logger=org.jboss:add(level=WARN)

In my layer-spec.xml I type (probably wrong, but I can't really decipher anything that makes more sense):

<?xml version="1.0"?>
<layer-spec xmlns="urn:jboss:galleon:layer-spec:1.0" name="foo">
    <feature spec="subsystem.logging">
        <param name="logger" value="org.jboss" />
        <param name="level" value="WARN" />
    </feature>
</layer-spec>

After adding the foo layer to WildFly in my pom.xml and building it with Maven I get the following error:

Failed to execute goal org.wildfly.plugins:wildfly-jar-maven-plugin:10.0.0.Final:package (default) on project wildfly: Provisioning failed: Failed to parse /feature-pack.xml: ParseError at [row,col]:[3,146]

Any ideas?

Thanks 😃
Bastian Fredriksson

James Perkins

unread,
Dec 11, 2023, 5:35:55 PM12/11/23
to WildFly
Hello,
I'm not too sure you really want to use a layer to add logging configurations. Using CLI would likely be the preferred approach. Especially for something as simple as setting up logging. Since you're using the wildfly-jar-maven-plugin have a look at https://docs.wildfly.org/bootablejar/#wildfly_jar_configuring_build_cli.

Jean Francois Denise

unread,
Dec 12, 2023, 8:08:57 AM12/12/23
to wil...@googlegroups.com

Hi,

would you share the project in which you build your feature-pack? the problem doesn't seem related to the layer definition.

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/CAMQeHYOD0PC9WZdonGngLmwB_dc%2B5PzMTy5N1iY-iVXyxXx1rA%40mail.gmail.com.

Mike Douglass

unread,
Dec 21, 2023, 12:03:01 PM12/21/23
to WildFly
I have setup bedework as a galleon feature pack. This https://github.com/Bedework/bw-wildfly-galleon-feature-packs is a bunch of feature packs which set up various features of bedework.

 I think the core pack sets up logging.

Bastian Fredriksson

unread,
Dec 21, 2023, 11:36:34 PM12/21/23
to Mike Douglass, WildFly
Thanks, I already did the logging, but I'll check your repository to see if there is anything I can reuse!

Reply all
Reply to author
Forward
0 new messages