Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-17651

Forward lsst.log to Python logging

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: log
    • Labels:
      None
    • Templates:
    • Story Points:
      2
    • Team:
      Architecture

      Description

      When writing unit tests it is sometimes useful to check that a log message was created. Python provides TestCase.assertLogs for this purpose but this does not work with lsst.log. It would be useful to allow unit tests to temporarily forward lsst.log messages to Python logging so that they could be tested.

      This would have to ensure that DM-15201 does not cause a logging loop.

      Ideally C++ log4cxx messages could be forwarded but it seems much easier to focus on Python lsst.log messages.

        Attachments

          Activity

            People

            • Assignee:
              tjenness Tim Jenness
              Reporter:
              tjenness Tim Jenness
              Reviewers:
              Andy Salnikov
              Watchers:
              Andy Salnikov, Kian-Tat Lim, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel