]> 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 2a5fabc30e61e3385475407897ce45879e86fe4b..055dbc10b59eed44c86b0679402f457f556a2dce 100644 (file)
@@ -16,10 +16,41 @@ details="
        while level 3 (warning) logs unexpected events that can be
        handled. Unhandled error conditions are logged with loglevel
        4 (error) and crititcal errors are logged using loglevel 5
-       (crit).  Finally, loglevel 6 (emerg) is reserved for messages
+       (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)
 "