[JBoss JIRA] Created: (AS7-1267) Can't set "append" attribute on file handlers
by Stan Silvert (JIRA)
Can't set "append" attribute on file handlers
---------------------------------------------
Key: AS7-1267
URL: https://issues.jboss.org/browse/AS7-1267
Project: Application Server 7
Issue Type: Bug
Components: Logging
Affects Versions: 7.1.0.Alpha1
Reporter: Stan Silvert
Assignee: David Lloyd
I can't tell what is really happening here. It seems to parse the "append" attribute OK, but it doesn't show up in the CLI. I've also set it programmatically in the console code, but I never get a value back for it.
<periodic-rotating-file-handler name="FILE">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
[standalone@localhost:9999 /] /subsystem=logging/periodic-rotating-file-handler=FILE:read-resource
{
"outcome" => "success",
"result" => {
"autoflush" => true,
"encoding" => undefined,
"file" => {
"path" => "server.log",
"relative-to" => "jboss.server.log.dir"
},
"formatter" => "%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n",
"level" => "INFO",
"suffix" => ".yyyy-MM-dd"
}
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (AS7-885) Not all operations in logging subsystem have an operation-name attribute and reply-, request-properties
by Heiko Rupp (JIRA)
Not all operations in logging subsystem have an operation-name attribute and reply-,request-properties
------------------------------------------------------------------------------------------------------
Key: AS7-885
URL: https://issues.jboss.org/browse/AS7-885
Project: Application Server 7
Issue Type: Bug
Components: Domain Management
Reporter: Heiko Rupp
[standalone@localhost:9999 console-handler=CONSOLE] :read-resource-description
...
"remove" => {"description" => "Remove an existing logging handler."},
"disable" => {"description" => "Disable a logging handler."},
"enable" => {"description" => "Enable a logging handler."},
While the name can be deduced from the key, it is present in many(all?) other subsystem operations and should be available here as well.
The operations listed also have no request-properties and reply-properties sections
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (AS7-1983) Logger handler level should be required
by Tristan Tarrant (JIRA)
Logger handler level should be required
---------------------------------------
Key: AS7-1983
URL: https://issues.jboss.org/browse/AS7-1983
Project: Application Server 7
Issue Type: Bug
Components: Logging
Affects Versions: 7.1.0.Alpha1
Reporter: Tristan Tarrant
Assignee: James Perkins
Priority: Minor
I believe there is a copy/paste mistake in LoggingSubsystemProviders.java in the following code:
private static void addCommonLoggerRequestProperties(final ModelNode modelNode, final ResourceBundle bundle) {
modelNode.get(REQUEST_PROPERTIES, LEVEL, TYPE).set(ModelType.STRING);
modelNode.get(REQUEST_PROPERTIES, LEVEL, DESCRIPTION).set(bundle.getString("handler.level"));
modelNode.get(REQUEST_PROPERTIES, LEVEL, REQUIRED).set(true);
modelNode.get(REQUEST_PROPERTIES, FILTER, TYPE).set(ModelType.STRING);
modelNode.get(REQUEST_PROPERTIES, FILTER, DESCRIPTION).set(bundle.getString("handler.filter"));
modelNode.get(REQUEST_PROPERTIES, LEVEL, REQUIRED).set(false);
modelNode.get(REQUEST_PROPERTIES, HANDLERS, TYPE).set(ModelType.LIST);
modelNode.get(REQUEST_PROPERTIES, HANDLERS, VALUE_TYPE).set(ModelType.STRING);
modelNode.get(REQUEST_PROPERTIES, HANDLERS, DESCRIPTION).set(bundle.getString("logger.handlers"));
modelNode.get(REQUEST_PROPERTIES, HANDLERS, REQUIRED).set(false);
}
the LEVEL property's REQUIRED flag is reset to false, instead of setting the FILTER's flag.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (AS7-1792) Fix the Logging description providers for the improved validation in jboss-as-subsystem-test
by Kabir Khan (JIRA)
Fix the Logging description providers for the improved validation in jboss-as-subsystem-test
--------------------------------------------------------------------------------------------
Key: AS7-1792
URL: https://issues.jboss.org/browse/AS7-1792
Project: Application Server 7
Issue Type: Feature Request
Components: Logging
Affects Versions: 7.1.0.Alpha1
Reporter: Kabir Khan
Assignee: James Perkins
I added a test called LoggingSubsystemTestCase, which uses our subsystem testing framework which attempts to validate the description providers, this will be committed to upstream in the next few days.
To make the tests pass I had to override AdditionalInitialization.getModelValidationConfiguration() and isValidateOperations() as follows:
{code}
@Override
protected ValidationConfiguration getModelValidationConfiguration() {
return null;
}
@Override
protected boolean isValidateOperations() {
//TODO fix providers https://issues.jboss.org/browse/AS7-1789
return false;
}
{code}
Returning null basically turns off validation of the providers, and the isValidateOperations() override turns off validation of the contents of the actual operations. What I have added is a minimum of what is required for subsystem testing, the test framework allows you to do a lot of other stuff, see the jmx subsystem test for some examples.
The wip lives at https://github.com/kabir/jboss-as/tree/subsystem-test-model-fixes
The above is standard text as I'm going through and creating tests. The test has been @Ignored due to a further failure once validation passes
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months