swarm:
logging:
root-logger:
level: INFO
custom-handlers:
GELF:
level: DEBUG
attribute-class: biz.paluch.logging.gelf.wildfly.WildFlyGelfLogHandler
module: biz.paluch.logging
properties:
host: udp:localhost
loggers:
com.foo:
level: DEBUG
handlers:
- GELF
<dependency>
<groupId>biz.paluch.logging</groupId>
<artifactId>logstash-gelf</artifactId>
<version>1.11.1</version>
<classifier>logging-module</classifier>
</dependency>
ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "logging"),
("custom-handler" => "GELF")
]): java.lang.IllegalArgumentException: WFLYLOG0019: Failed to load module 'biz.paluch.logging' for handler 'GELF'Does your project have a module.xml for biz.paluch.logging in src/main/resources/modules of the project?
2018-09-08 09:50:36,826 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "logging"),("custom-handler" => "GELF")
]) - failure description: "WFLYLOG0021: Class 'biz.paluch.logging.gelf.wildfly.WildFlyGelfLogHandler' could not be found."
<?xml version="1.0" encoding="UTF-8"?><module name="biz.paluch.logging" xmlns="urn:jboss:module:1.3"><resources><resource-root path="logstash-gelf-1.11.2.jar"/><resource-root path="jedis-2.9.0.jar"/><resource-root path="commons-pool2-2.4.3.jar"/></resources><dependencies><module name="org.apache.log4j"/><module name="org.slf4j"/><module name="javax.api"/><module name="org.jboss.logmanager"/></dependencies></module>