[
https://issues.jboss.org/browse/WFLY-11661?page=com.atlassian.jira.plugin...
]
Marco Schulze updated WFLY-11661:
---------------------------------
Steps to Reproduce:
# Set up a WildFly 10 or 11 (other versions might be affected, too, but I didn't
test).
# Start this WildFly and deploy sth., i.e. use it normally.
# Stop the server.
# Change the standalone.xml file:
## Rename the regular "FILE" logging-handler to "FILE.sync".
## Add a new async-handler like this:
{quote}<async-handler name="FILE">
<queue-length value="512"/>
<overflow-action value="block"/>
<subhandlers>
<handler name="FILE.sync"/>
</subhandlers>
</async-handler>{quote}
# Start the WildFly again and wait a bit until it updates the {{logging.properties}}.
# Check the {{logging.properties}}: Both handlers exist, now, hence it has definitely been
written, but: *It lacks the sub-handlers for the "FILE" handler.*
# Check the log file: *Nothing is logged, anymore.*
And here the following steps to work around this bug:
# Stop the WildFly, again.
# Delete the {{logging.properties}} file.
# Start the WildFly, again and wait for the {{logging.properties}} to be recreated.
# Check the {{logging.properties}} and the log file: Now, everything is correct.
was:
# Set up a WildFly 10 or 11 (other versions might be affected, too, but I didn't
test).
# Start this WildFly and deploy sth., i.e. use it normally.
# Stop the server.
# Change the standalone.xml file:
## Rename the regular "FILE" logging-handler to "FILE.sync".
## Add a new async-handler like this:
{quote}<async-handler name="FILE">
<queue-length value="512"/>
<overflow-action value="block"/>
<subhandlers>
<handler name="FILE.sync"/>
</subhandlers>
</async-handler>{quote}
# Start the WildFly again and wait a bit until it updates the {{logging.properties}}.
# Check the {{logging.properties}}: Both handlers exist, now, hence it has definitely been
written, but: *It lacks the sub-handlers for the "FILE" handler.*
# Check the log files: *Nothing is logged, anymore.*
And here the following steps to work around this bug:
# Stop the WildFly, again.
# Delete the {{logging.properties}} file.
# Start the WildFly, again and wait for the {{logging.properties}} to be recreated.
# Check the {{logging.properties}} and the log files: Now, everything is correct.
async-handler not working / logging.properties incompletely updated
-------------------------------------------------------------------
Key: WFLY-11661
URL:
https://issues.jboss.org/browse/WFLY-11661
Project: WildFly
Issue Type: Bug
Affects Versions: 10.1.0.Final, 11.0.0.Final
Reporter: Marco Schulze
Assignee: Brian Stansberry
Priority: Major
The {{logging.properties}} file which is generated from the {{standalone.xml}} is not
correctly updated. When switching to asynchronous logging by renaming the
{{"FILE"}} handler to {{"FILE.sync"}} and then introducing an
{{async-handler}} named {{"FILE"}} referencing {{"FILE.sync"}} in its
{{subhandlers}}, the {{logging.properties}} then lacks the following line:
{quote}handler.FILE.handlers=FILE.sync{quote}
I tested this with WildFly 10 and 11, but this bug might affect more (and newer)
versions.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)