diff options
author | Khai Do <zaro0508@gmail.com> | 2014-05-15 11:59:03 -0700 |
---|---|---|
committer | Khai Do <zaro0508@gmail.com> | 2014-05-16 08:31:52 -0700 |
commit | 3d2902451c697e46585b87c40487c4f109228a85 (patch) | |
tree | 5e684c6c8b65db4c1e6e3515c91dfd0febdd5af0 /doc | |
parent | 5bdcfef2af1c0c685252730b0f57f615787c985d (diff) | |
download | gear-3d2902451c697e46585b87c40487c4f109228a85.tar.gz |
document how to configure gearman logging
Change-Id: Ic6623c23dbb7e970d1fa24115c45ee427e07bdaa
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/index.rst | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst index 8fb361a..d7ee37b 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -165,6 +165,57 @@ AdminRequest Objects Server Usage ------------ +Logging +^^^^^^^ + +To enable Gearman server logging you can setup a log configuration file and +pass it to `geard` (i.e. geard --log-config=logging.config) + +Example logging.config:: + + [loggers] + keys=root,gear + + [handlers] + keys=console,debug,info + + [formatters] + keys=simple + + [logger_root] + level=WARNING + handlers=console + + [logger_gear] + level=INFO + handlers=debug,info + qualname=gear + + [handler_console] + level=WARNING + class=StreamHandler + formatter=simple + args=(sys.stdout,) + + [handler_debug] + level=DEBUG + class=logging.handlers.TimedRotatingFileHandler + formatter=simple + args=('/var/log/gear/debug.log', 'midnight', 1, 30,) + + [handler_info] + level=INFO + class=logging.handlers.TimedRotatingFileHandler + formatter=simple + args=('/var/log/gear/info.log', 'midnight', 1, 30,) + + [formatter_simple] + format=%(asctime)s %(levelname)s %(name)s: %(message)s + datefmt= + +ACL +^^^ + The syntax of the optional ACL file consists of a number of sections identified by the SSL certificate Common Name Subject, and the arguments to the :py:class:`ACLEntry` constructor as key-value pairs:: |