This content has been marked as final.
Show 1 reply
-
1. Re: How to generate server.log in custom folder location in wildfly-8.2.0.Final
jamezp May 10, 2016 6:58 PM (in response to sridharthiyagarajan)Try setting autoflush to true. It's likely just being buffered and not written. As for the date not being printed you'll need to use a formatter to get date. Assuming the default configuration there should be a patter-formatter called PATTERN which will log the full timestamp.
/subsystem=logging/size-rotating-file-handler=FILE:write-attribute(name=named-formatter, value=PATTERN)
Also note you can override the jboss.server.log.dir by setting the system property in the JAVA_OPTS. Or you can configure a custom path and use that in the relative-to.
/path=my.log.dir:add(path="/var/log/")
--
James R. Perkins