]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - server.ggo
Move color logging code to daemon.c and use it also for para_audiod.
[paraslash.git] / server.ggo
index 6b4770a8816e728767157a31912bf1cbb9d24987..055dbc10b59eed44c86b0679402f457f556a2dce 100644 (file)
@@ -4,22 +4,53 @@ section "General options"
 
 option "loglevel" l
 #~~~~~~~~~~~~~~~~~~
-"set loglevel (1-6)"
+"set loglevel (0-6)"
 int typestr="level"
-default="4"
+default="3"
 optional
 details="
-       Larger values mean less verbose output. Loglevel 1 (debug) gets
-       really noisy; a value of 2 (info) produces still noisy output,
+       Larger values mean less verbose output. Loglevel 0 (debug) gets
+       really noisy; a value of 1 (info) produces still noisy output,
        but this won't fill up the disk quicky. Messaged logged with
-       loglevel 3 (notice) indicate normal but significant events
-       while level 4 (warning) logs unexpected events that can be
+       loglevel 2 (notice) indicate normal but significant events
+       while level 3 (warning) logs unexpected events that can be
        handled. Unhandled error conditions are logged with loglevel
-       5 (error) and crititcal errors are logged using loglevel 6
-       (crit).  Finally, loglevel 7 (emerg) is reserved for messages
+       4 (error) and crititcal errors are logged using loglevel 5
+       (crit). Finally, loglevel 6 (emerg) is reserved for messages
        that cause para_server to terminate immediately.
 "
 
+option "color" C
+#~~~~~~~~~~~~~~~
+"activate color output"
+enum typestr="when"
+values = "yes","no","auto"
+default = "auto"
+optional
+
+option "log_color" -
+#~~~~~~~~~~~~~~~~~~~
+"select a color for one type of log message"
+string typestr="color_spec"
+multiple
+optional
+details="
+       The format of \"color_spec\" is [fg [bg]] [attr].
+
+       Valid colors for \"fg\" and \"bg\" are \"normal\", \"black\",
+       \"red\", \"green\", \"yellow\", \"blue\", \"magenta\",
+       \"cyan\", and \"white\".
+
+       The \"attr\" value must be one of \"bold\", \"dim\", \"ul\",
+       \"blink\", \"reverse\".
+
+       Examples:
+
+               --log_color \"debug:green\"
+               --log_color \"info:yellow bold\"
+               --log_color \"notice:white red bold\"
+"
+
 option "port" p
 #~~~~~~~~~~~~~~
 "listening port"
@@ -58,7 +89,7 @@ details="
        of 'name'. As the configuration file is read afterwards,
        those options that have a default value depending on the UID
        (e.g. the directory for the configuration file) are computed
-       by using the uid of 'name'.  This option has no effect if
+       by using the uid of 'name'. This option has no effect if
        para_server is started as a non-root user (i.e.  EUID != 0)
 "