[arquillian-issues] [JBoss JIRA] (ARQ-454) Console log output in Arquillian and JBoss Container Managed 6

Dan Allen (JIRA) jira-events at lists.jboss.org
Tue May 8 00:16:18 EDT 2012


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

Dan Allen commented on ARQ-454:
-------------------------------

Actually, the issue is that ServerController "pumps" the stdout and sterr to corresponding files in server/default/log. This is hard coded behavior and there is no way outside of ServerController to change this behavior.

If ServerController didn't route the two input streams to files, then the output would show up in the console just as it does with other managed and embedded containers.

Here's the code in question:

{code:java}
final BufferedReader errStream = new BufferedReader(new InputStreamReader(process.getErrorStream()));
final BufferedReader inStream = new BufferedReader(new InputStreamReader(process.getInputStream()));

final File outFile = server.getOutputLog(); // <- output.log
initalizeLog(outFile);
final PrintWriter outlog = new PrintWriter(new FileWriter(outFile));
server.setOutWriter(outlog);

Thread outPump = new OutputPumper(inStream, outlog);
outPump.start();

final File errorFile = server.getErrorLog(); // <- error.log
initalizeLog(errorFile);
final PrintWriter errorlog = new PrintWriter(new FileWriter(errorFile));
server.setErrorWriter(errorlog);

Thread errorPump = new OutputPumper(errStream, errorlog);
errorPump.start();
{code}
                
> Console log output in Arquillian and JBoss Container Managed 6
> --------------------------------------------------------------
>
>                 Key: ARQ-454
>                 URL: https://issues.jboss.org/browse/ARQ-454
>             Project: Arquillian
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: JBoss AS Containers
>    Affects Versions: 1.0.0.Alpha5
>            Reporter: Ove Ranheim
>
> It should be possible to configure console log output in in arquillian.xml, so the logger would redirected server.log to console output. This would require a change in ServiceController: http://anonsvn.jboss.org/repos/jbossas/projects/server-manager/tags/1.0.4.Final/src/main/java/org/jboss/jbossas/servermanager/ServerController.java
> For Bamboo users; Bamboo Jobs are sniffing on the console log output and is sensitive about that, so to get proper integration tests running, this is a requirement.
> This issue should probably be raised with Ryan Campbell.

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

        


More information about the arquillian-issues mailing list