Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add-gelf-logger.cli
/subsystem=logging/custom-handler=GelfLogger/:add(module=biz.paluch.logging,class=biz.paluch.logging.gelf.jboss7.JBoss7GelfLogHandler,properties={ \
host="<Your Logstash Host>", \
extractStackTrace=true, \
filterStackTrace=true, \
mdcProfiling=true, \
facility="JBoss AS7/AS8", \
additionalFields="Environment=Test", \
mdcFields="remoteAddr,remoteUser,sessionId,requestUri,requestMethod" \
},level=INFO)
/subsystem=logging/root-logger=ROOT/:write-attribute(name=handlers,value=["CONSOLE","FILE", "GelfLogger"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment