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

Add a command line argument to supply a log4cxx configuration file for running CmdLineTask

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_base
    • Labels:
      None

      Description

      Unlike pex.logging, log backed by log4cxx is configurable at runtime using a configuration file. For running CmdLineTasks, DM-6999 sets some defaults inside pipe_base and provides an -- longlog option to output in a more verbose format, including data, time, and data IDs. I think it would be useful to let users supply their own log4cxx configuration file easily through the command line task interface, giving users more control over their logs.

        Attachments

          Issue Links

            Activity

            Hide
            hchiang2 Hsin-Fang Chiang added a comment -

            The existing way to set a log4cxx configuration file is through LSST_LOG_CONFIG environment variable.

            Show
            hchiang2 Hsin-Fang Chiang added a comment - The existing way to set a log4cxx configuration file is through LSST_LOG_CONFIG environment variable.
            Hide
            hchiang2 Hsin-Fang Chiang added a comment -

            Note that the current --longlog option hard-codes the level to INFO too

            Show
            hchiang2 Hsin-Fang Chiang added a comment - Note that the current --longlog option hard-codes the level to INFO too
            Hide
            hchiang2 Hsin-Fang Chiang added a comment -

            When I created this ticket, my thought was that users configure log through a configuration file. Based on recent discussions on RFC-203, I'm not sure that is actually wanted; so I'm marking this ticket as Won't Fix. Please reopen if you disagree.

            Show
            hchiang2 Hsin-Fang Chiang added a comment - When I created this ticket, my thought was that users configure log through a configuration file. Based on recent discussions on RFC-203 , I'm not sure that is actually wanted; so I'm marking this ticket as Won't Fix. Please reopen if you disagree.

              People

              Assignee:
              hchiang2 Hsin-Fang Chiang
              Reporter:
              hchiang2 Hsin-Fang Chiang
              Watchers:
              Andy Salnikov, Fritz Mueller, Hsin-Fang Chiang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.