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

Allow appending to log configuration

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: log, log4cxx
    • Labels:
      None
    • Team:
      Architecture

      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

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              Unassigned 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:

                  Jenkins

                  No builds found.