|author||Peter Seebach <firstname.lastname@example.org>||2010-04-26 17:11:15 -0700|
|committer||Peter Seebach <email@example.com>||2010-04-26 17:13:45 -0700|
Updates/improvements for logging
Send program name (program_invocation_name from glibc) along with the tag. Along the way, restructure the fds/pids/tags arrays to be an array of client structures in pseudo_server, and add the message type to the set of things logged -- logging that a message was a ping is more useful than appending the text "ping" to it. Add support for type and program to pseudolog. Add deletion to pseudolog. Handle usage message formatting when there's an odd number of known specifiers for pseudolog. Conflicts: ChangeLog.txt pseudo_server.c
Diffstat (limited to 'pseudolog.1')
1 files changed, 32 insertions, 8 deletions
diff --git a/pseudolog.1 b/pseudolog.1
index b7c9bbb..f11751f 100644
@@ -26,7 +26,7 @@
.RI [ SPECIFICATIONS ]
-.RB [ \-DPv ]
+.RB [ \-UPv ]
@@ -37,13 +37,21 @@
.B pseudolog \-h
+.B pseudolog \-D
+.RB [ \-Pv ]
+.RI [ SPECIFICATIONS ]
.RI [ SPECIFICATIONS ]
-utility displays log entries created by the
+utility displays, creates, or deletes log entries associated with the
-daemon, or creates log entries. Creation of log entries is useful only to
+daemon. Creation of log entries is useful only to
create timestamps or notes; for instance, you could create a log entry before
beginning a process, so there would be a timestamp for the beginning of
that process. There are a number of special options used to match or create
@@ -60,11 +68,7 @@ The following other options are supported:
Print a usage message and exit.
-Restrict query output to distinct rows. Rows will have members defined by
-(format) option. If all members are the same between two rows, only one
-is displayed. Applies only to queries.
+Delete rows selected by the query. This is not reversible.
.BI \-E \ timeformat
Specify a format string (for
@@ -97,6 +101,13 @@ should be used as the
value, overriding any environment setting.
+Restrict query output to unique rows. Rows will have members defined by
+(format) option. If all members are the same between two rows, only one
+is displayed. Applies only to queries.
Increase verbosity (debug level). Not useful except when debugging pseudo.
@@ -261,6 +272,12 @@ usually means that there was no entry in the
+Program. This is the program name (as retrieved by glibc's
+variable), which has the full path if and only if the program
+was invoked by full path name.
Timestamp. The format of this field is controlled by the
@@ -291,6 +308,13 @@ logged. It is, of course, a text field.
UID. The user ID associated with an entry.
+Type. This is usually "op" for operations, or "ping" for the ping
+messages clients send to confirm server availability. Other types
+should rarely occur, but include "ack" and "nak" for server
+responses (which are never logged), and "halt" for shutdown messages
+(currently not logged).
The following examples illustrate some of the likely usage patterns for