[arquillian-issues] [JBoss JIRA] (ARQ-710) Separated per-test and per-container log files.

Ondrej Zizka (Commented) (JIRA) jira-events at lists.jboss.org
Fri Jan 6 11:49:10 EST 2012


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

Ondrej Zizka commented on ARQ-710:
----------------------------------

David Lloyd about implementing  Appender-like logging:

{quote}
(17:16:59) OndrejZizka: Hi David, where can I find some Appender class in JBoss logging?
(17:17:09) OndrejZizka: in sources
(17:19:27) dmlloyd: JBoss Logging has no appenders, it's just a log frontend
(17:19:39) dmlloyd: unless you're talking about the older stuff from AS 5
(17:22:24) OndrejZizka: No, AS 7
(17:22:37) OndrejZizka: So, if I want some rolling appender used in AS 7,
(17:22:51) OndrejZizka: how would I do it - like in log4j.properties?
(17:24:43) OndrejZizka: logging.properties goes directly to the underlying framework or is somehow processed by jboss logging?
(17:29:35) dmlloyd: the logging backend in AS7 is jboss-logmanager
(17:29:44) dmlloyd: it's a java.util.logging.LogManager implementation
(17:29:54) dmlloyd: but it also has extensive compatibility APIs
(17:30:13) dmlloyd: jboss-logmanager is what processes logging.properties
(17:43:30) OndrejZizka: I haven't worked with JUL much; if I wanted to implement an appender, and set it to be used in AS7, where would I start?
(17:45:30) dmlloyd: if it's specifically for AS7, the best thing to do is implement org.jboss.logmanager.ExtHandler or one of its subclasses
(17:48:19) OndrejZizka: Yes, it's for AS 7 + arquillian - to separate log lines per test case.
{quote}
                
> Separated per-test and per-container log files.
> -----------------------------------------------
>
>                 Key: ARQ-710
>                 URL: https://issues.jboss.org/browse/ARQ-710
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Base Implementation
>    Affects Versions: 1.0.0.CR7
>            Reporter: Ondrej Zizka
>            Priority: Critical
>
> What's the best way to separate server and client log messages?
> Currently, any output is redirected to Surefire. Which only creates one output.
> So, either arq can log to an arbitrary file, or surefire could have support for multiple logs.
> The later won't happen any soon I guess Arq just forwards anything to surefire.
> So, let's say I want to have separated log files in surefire-reports dir:
> * org.jboss.FooBarTestCase-client,
> * org.jboss.FooBarTestCase-server1,
> * org.jboss.FooBarTestCase-server2, ...
> This feature is quite important for large testsuites which produce tons of log messages,
> and even more for multi-node tests.

--
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