[ 
https://issues.apache.org/jira/browse/KARAF-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206053#comment-13206053
 ] 

Claus Ibsen commented on KARAF-1197:
------------------------------------

Instead of a PrintStream we can settle with a boolean version option on the 
InstanceSettings option. So if verbose=false, then it will only log the first 
line from the code
{code}
println(Ansi.ansi().a("Creating new instance on SSH port ").a(sshPort).a(" and 
RMI ports ").a(rmiRegistryPort).a("/").a(rmiServerPort).a(" at: 
").a(Ansi.Attribute.INTENSITY_BOLD).a(karafBase).a(Ansi.Attribute.RESET).toString());
{code}

Where as all the lines with creating dir / creating files, is not logged. 
                
> AdminService - Allow to provide a PrintStream so you can capture or control 
> activity on the console
> ---------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-1197
>                 URL: https://issues.apache.org/jira/browse/KARAF-1197
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-admin
>    Affects Versions: 2.2.5
>            Reporter: Claus Ibsen
>
> The AdminService can create instances of Karaf. It would be great if you 
> could provide a PrintStream so you can divert and control console activity.
> eg in this source code
> https://svn.apache.org/repos/asf/karaf/branches/karaf-2.2.x/admin/core/src/main/java/org/apache/karaf/admin/internal/AdminServiceImpl.java
> The method println, is hardcoded to do System.out.
> What we need is to be able to provide a PrintStream on these methods
> https://svn.apache.org/repos/asf/karaf/branches/karaf-2.2.x/admin/core/src/main/java/org/apache/karaf/admin/AdminService.java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to