Olivier Cailloux created WFLY-10935:
---------------------------------------
Summary: Clear log
Key: WFLY-10935
URL:
https://issues.jboss.org/browse/WFLY-10935
Project: WildFly
Issue Type: Feature Request
Components: Logging
Reporter: Olivier Cailloux
Assignee: James Perkins
Priority: Minor
When debugging it’s handy to be able to easily clear the log just before triggering an
action that makes an application misbehave (so that you can then inspect the log knowing
that it starts when the action starts).
For this, it would be nice to have the possibility to force rotate the log on the
periodic-rotating-file-handler type of handler.
Thus we would run something like this in the CLI:
/subsystem=logging/periodic-rotating-file-handler=FILE:write-attribute(name="rotate",
value=true)
Maybe it’s already possible by writing the "enabled" or "change-file"
or "append" attribute (twice, to put it back to its previous state), but it
feels hackish and it’s undocumented, therefore I’m not sure what the side effects of this
would be (even assuming it would work).
GlassFish for example has [asadmin
rotate-log|https://github.com/oliviercailloux/java-course/blob/master/Gla...].
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)