Skip to content
Browse files

Improved documentation and handle a bad logging config file.

  • Loading branch information...
1 parent 24224e3 commit 46cdab272e54a36693e90c467a5f86f113cda121 @dnephin dnephin committed Mar 27, 2012
Showing with 17 additions and 1 deletion.
  1. +3 −0 bin/trond
  2. +13 −0 docs/config.rst
  3. +1 −1 docs/man_trond.rst
View
3 bin/trond
@@ -84,6 +84,9 @@ def parse_options():
if not options.working_dir:
parser.error("Bad working-dir option")
+ if options.log_conf and not os.path.exists(options.log_conf):
+ parser.error("Logging config file not found: %s" % options.log_conf)
+
if options.config_file is None:
options.config_file = os.path.join(
options.working_dir, DEFAULT_WORKING_CONF)
View
13 docs/config.rst
@@ -249,3 +249,16 @@ Services
**services**
List of services for Tron to manage. See :doc:`services` for the options
available to services.
+
+
+Logging
+-------
+
+As of v0.3.2 Logging is no longer configured in the tron configuration file.
+
+Tron uses Python's standard logging and by default uses a rotating log file
+handler that rotates files each day. Logs go to /var/log/tron/tron.log.
+
+To configure logging pass -l <logging.conf> to trond. You can modify the
+default logging.conf by coping it from tron/logging.conf. See
+http://docs.python.org/howto/logging.html#configuring-logging
View
2 docs/man_trond.rst
@@ -71,7 +71,7 @@ State file
Logging
-------
-Tron uses pythons standing logging and by default uses a rotating log file
+Tron uses Python's standard logging and by default uses a rotating log file
handler that rotates files each day. Logs go to /var/log/tron/tron.log.
To configure logging pass -l <logging.conf> to trond. You can modify the

0 comments on commit 46cdab2

Please sign in to comment.
Something went wrong with that request. Please try again.