This content has been marked as final.
Show 1 reply
-
1. Re: Jboss logging filter validation
jamezp Sep 23, 2016 5:20 PM (in response to kuznetsovr94)If you only want to write one category to a specific file you just need to create a file-handler and a logger which you assign that file-handler to.
Example:
/subsystem=logging/file-handler=google-logs:add(append=true, autoflush=true, named-formatter=PATTERN, file={relative-to="jboss.server.log.dir", path="google.log"})
/subsystem=logging/logger=com.google.test:add(level=INFO, handlers=[google-logs])
If you don't want those logs to also go the console and the default server.log replace the last command with the following:
/subsystem=logging/logger=com.google.test:add(level=INFO, handlers=[google-logs], use-parent-handlers=true)
--
James R. Perkins