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

Allow appending to log configuration

    Details

    • Templates:
    • Team:
      Data Access and Database

      Description

      Currently, to configure a "log listener" requires overriding the default log configuration. We should be able to "plug in" to a logger without changing how any other logger is configured.

      An example that would send everything logged to example.somelog to somefile.log, without changing any other logging could be as follows:

      lsst.log.configure_append("""
      log4j.logger.example.somelog=TRACE, B1
      log4j.appender.B1=FileAppender
      log4j.appender.B1.File=somefile.log
      log4j.appender.B1.layout=PatternLayout
      log4j.appender.B1.layout.ConversionPattern=%m%n
      """
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Parejkoj John Parejko
              Watchers:
              Andy Salnikov, Frossie Economou, Hsin-Fang Chiang, John Parejko, Jonathan Sick, Kian-Tat Lim, Simon Krughoff, Tim Jenness
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel