From 3b0a901275e63ca7a0d46a5f58bdc6d1f706ce06 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Thu, 12 Oct 2023 10:17:47 +0000
Subject: New logging system; not used yet in tipideed
Signed-off-by: Laurent Bercot
---
doc/tipideed.html | 41 +++++++++++++++++++++++++++++++++++------
1 file changed, 35 insertions(+), 6 deletions(-)
(limited to 'doc/tipideed.html')
diff --git a/doc/tipideed.html b/doc/tipideed.html
index 8f080bc..977317c 100644
--- a/doc/tipideed.html
+++ b/doc/tipideed.html
@@ -28,7 +28,7 @@ a web server package: it serves files over HTTP.
- tipideed [ -v verbosity ] [ -f cdbfile ] [ -d basedir ] [ -R ] [ -U ]
+ tipideed [ -f cdbfile ] [ -d basedir ] [ -R ] [ -U ]
@@ -201,11 +201,6 @@ cannot be used by CGI scripts in a portable way.
- - -v verbosity
- - The level of log verbosity. This is the same as the global verbosity
-setting in the configuration file; an explicit
-command line option overrides any setting present in the configuration file.
-
- -f file
- Use file as the compiled configuration database, typically obtained
by running tipidee-config -o file.
@@ -335,6 +330,40 @@ at all, your documents will most likely be accessible for HTTP/1.0 clients under
@:80 or @:443.
+
+
Logging
+
+
+
+ - tipideed uses stderr for all its logging. All its log lines are prefixed
+with "tipideed: pid pid: ".
+ - The log lines continue with "fatal: " for fatal error messages (meaning
+that tipideed exits right after writing the message), or "warning: " for
+warnings (meaning that tipideed continues operating after writing the message).
+In normal operation, you should not see any fatal or warning line.
+ - In normal operation, tipidee can log informational lines, and the continuing
+prefix is "info: ". It can potentially log:
+
+ - One line when it starts (i.e. a client has connected)
+ - Up to three lines for every request:
+
+ - One when the request is received
+ - One when a suitable resource is found
+ - One when an answer is sent
+
+ - One line when it exits normally
+
+ - What informational lines to log is configured via the
+log directive in the
+configuration file. By default, only
+a minimal request line and an answer line are printed.
+ - The log format is designed to be readable by a human, but still
+easily processable by automation. For instance, the regular prefix structure
+makes it easy for s6-log
+to select different lines to send them to various backends for archiving or
+processing.
+
+
Detailed operation
--
cgit v1.2.3