Commit Graph

5 Commits

Author SHA1 Message Date
Brian Palmer 056cfbbcab allow setting the log level in logging.yml for syslog
test plan: Set up your logging.yml to go to syslog, with a log_level
defined (see logging.yml.example). If you're on OS X you already have
syslog running, just open Console.app and view system.log. Note though
that syslog is probably set to filter < warn or error logs.

Change-Id: I828a09329fae612d46e43fe761849a6e1336a4d3
Reviewed-on: https://gerrit.instructure.com/13623
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-09-13 09:55:09 -06:00
Zach Wily 6092da0807 allow including the PID in syslog logging
test plan:
  * configure syslog logging in your development environment
  * set "include_pid: true" in your log configuration
  * verify that log lines include the proc pid after the process name

Change-Id: I29414acb0b6f7cba06765520b1fb4caf67ebe1a4
Reviewed-on: https://gerrit.instructure.com/9026
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-02-27 12:59:47 -07:00
Brian Palmer 353204e7a1 log context when using local rails buffered logger
This was already supported for Syslog, but not for the BufferedLogger
class. Also add an option to disable the context logging.

This also fixes a bug where the session logging was always using the
default session cookie name (_normandy_session), rather than the
configured one.

refs #5094

Change-Id: I4c8389f1051a70c25a92bfe018044cd15f45422b
Reviewed-on: https://gerrit.instructure.com/4795
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-07-25 13:25:18 -06:00
JT Olds cda4807c1b syslog ident and facility configurable via yaml
Change-Id: Ib72f4f6a1eed7318a3465bd9e8b88cd0bebedac5
Reviewed-on: https://gerrit.instructure.com/4018
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Zach Wily <zach@instructure.com>
2011-06-03 10:01:35 -06:00
JT Olds d0e697429e optionally log to syslog
Change-Id: I12e9be279026d58b80c241dcf9d4f598e917c63c
Reviewed-on: https://gerrit.instructure.com/3992
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-06-02 16:35:47 -06:00