[jboss-jira] [JBoss JIRA] (AS7-6200) CLONE - Add 'silent' mode to CommandContext API

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Mon Jan 21 09:13:21 EST 2013


    [ https://issues.jboss.org/browse/AS7-6200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749193#comment-12749193 ] 

Alexey Loubyansky commented on AS7-6200:
----------------------------------------

The method responsible for the output writes lines
1) using the logger (which is disabled by default in jboss-cli-logging.properties);
2) using specified output target on the command line using '>';
3) to the terminal output.

The logger is always used. Then if the output target was specified, it is used, otherwise - the terminal output.

I am thinking if I add a silent mode, I'll put the check before 3). So, the logic would be:
- always log (which will depend on the config and is disabled by default);
- if the output target is specified, use the target;
- if silent mode, do nothing, otherwise use the terminal output.

Any objections or suggestions?
                
> CLONE - Add 'silent' mode to CommandContext API
> -----------------------------------------------
>
>                 Key: AS7-6200
>                 URL: https://issues.jboss.org/browse/AS7-6200
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: CLI
>            Reporter: Thomas Hauser
>            Assignee: Alexey Loubyansky
>            Priority: Minor
>
> It would be nice to have the option of running in 'silent' mode when using the CommandContext. By 'silent' I mean no output to standard output; instead, the entity calling the CommandContext would be responsible for reporting on errors and the like. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list