summary refs log tree commit diff
path: root/synapse/config/logger.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-04-30 13:58:13 +0100
committerDavid Baker <dave@matrix.org>2015-04-30 13:58:13 +0100
commitd89a9f72833acfd472ec557a8fe3927320efea93 (patch)
tree4c05c0e576f356ffa4634615a1b797468273b0e7 /synapse/config/logger.py
parentUnused import (diff)
downloadsynapse-d89a9f72833acfd472ec557a8fe3927320efea93.tar.xz
Add an access_log
SYN-161 #resolve
Diffstat (limited to '')
-rw-r--r--synapse/config/logger.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py
index 247b324816..559cbe7963 100644
--- a/synapse/config/logger.py
+++ b/synapse/config/logger.py
@@ -27,6 +27,7 @@ class LoggingConfig(Config):
         self.verbosity = int(args.verbose) if args.verbose else None
         self.log_config = self.abspath(args.log_config)
         self.log_file = self.abspath(args.log_file)
+        self.access_log_file = self.abspath(args.access_log_file)
 
     @classmethod
     def add_arguments(cls, parser):
@@ -44,6 +45,10 @@ class LoggingConfig(Config):
             '--log-config', dest="log_config", default=None,
             help="Python logging config file"
         )
+        logging_group.add_argument(
+            '--access-log-file', dest="access_log_file", default="access.log",
+            help="File to log server access to"
+        )
 
     def setup_logging(self):
         log_format = (