XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Logging
    • None
    • Low

      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.

              jperkins-rhn James Perkins
              oliviercailloux Olivier Cailloux (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: