You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Alexander Revello (Jira)" <ji...@apache.org> on 2022/03/07 19:02:00 UTC

[jira] [Assigned] (DAFFODIL-2643) unit test needed that shows how to capture and examine log for proper logging

     [ https://issues.apache.org/jira/browse/DAFFODIL-2643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Revello reassigned DAFFODIL-2643:
-------------------------------------------

    Assignee: Alexander Revello

> unit test needed that shows how to capture and examine log for proper logging
> -----------------------------------------------------------------------------
>
>                 Key: DAFFODIL-2643
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2643
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Infrastructure, QA
>    Affects Versions: 3.2.1
>            Reporter: Mike Beckerle
>            Assignee: Alexander Revello
>            Priority: Major
>
> Proper logging should be testable.
> We need a unit test that sets up a logger and verifies that a particular logging message is present. The purpose of this test is (a) show logging is working at all (b) show how to do this so as to insure certain log messages are present.
> Ideally the TDML language should have a way of specifying expected log output:
> {code:java}
> <logs>
>   <log>string here that must be in log message case insensitive</log>
>   <log>another such string</log>
> </logs>{code}
> And consistent with DAFFODIL-864, which calls for TDML negative errors, warnings, validation errors, etc. there should be negative log checking as well. 
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)