The LogServer listens for log items on a TCP socket and commits them to file.
Each logged item belongs to a transaction (a base-36 number), has a level of seriousness (debug, info, error or disaster) and a text.
Constructs an empty LogServer, listening on socket s.
Constructs a LogServer which listens nowhere. This can effectively only be used by SelfLogger.
This private function actually writes line to the log file with the tag and severity s converted into their textual representations.
Parses log messages from the input buffer.
Adds a single line to the log output.
The line must consist of a client identifier (numbers and slashes) followed by a space, the (ignored) message facility, a slash and a severity, followed by a space and the log message.
Logs a final line in the logfile and reopens it. The unused int argument exists because this function is used as a signal handler.
Tells all LogServer object to write log information to name from now on. (If the file has to be created, mode is used.)
Sets the log level to the Severity corresponding to l.
Maps l to the corresponding Log::Severity value, and returns Log::Info in case of error.
This function is the inverse of Log::severity().
This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.