Warning: Can't synchronize with the repository (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #16 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

more logging options

Reported by: msfrank Owned by: msfrank
Priority: major Milestone: 0.2
Component: core Version:
Keywords: Cc:

Description

currently we only support logging to stdout, and is also an all-or-nothing approach (i.e. either everything gets logged or nothing does). we should add command line arguments for adjusting which levels of messages get output, which domains get output, and add support for logging to syslog or a logfile.

all of these changes should be relatively simple, the infrastructure is there (log levels and domains, twisted support for logging), they just need to be enabled and presented to the user in a reasonable way.

Change History

Changed 3 years ago by msfrank

related to this issue is implementing 'debug' mode, where logging goes straight to stdout (regardless of other configuration options) and the server does not daemonize. currently we do this by default, so we need to add the code for daemonizing and parsing the command line for a debug flag.

Changed 3 years ago by msfrank

logs should go to <environment>/logs/. logging should be configurable from the command line as follows:

-l,--logdomain DOMAIN: if specified, only log messages from DOMAIN; can be specified multiple times. If no log domain is specified, then messages from all domains are logged.
-v,--verbose: increase verbosity (up to -vvv)
-d,--debug: log to stdout instead of logfile; don't daemonize

Changed 3 years ago by msfrank

added logfile logging and proper --debug flag handling in changeset 490f67952bf1c4f427abfa1b18b296a711073774

Changed 3 years ago by msfrank

  • milestone changed from 0.1 to 0.2

moving logging domain code to 0.2

Changed 3 years ago by msfrank

  • status changed from new to closed
  • resolution set to fixed

i'm gonna call this one good. the need for domain-filtering is just not pressing at the moment. maybe in a few releases i'll resurrect this ticket.

Note: See TracTickets for help on using tickets.