L(3)

L3

Generate logging messages in c and c++.

Usage

#include <L.h>

L(format,...)

LG(guard,format,...)

LH(handler,format,...)

LP(param,format,...)

LGH(guard,handler,format,...)

LHP(handler,param,format,...)

LGHP(guard,handler,param,format,...)

Overview

The L macro is used to print logging or debugging messages.

format,... - a printf(3) style argument list containing the message

guard - print only if the guard is true.

handler - the code that does the printing, e.g. support is provided for sending log messages to a circular buffer.

param - a parameter to be passed off to the handler, e.g. a file descriptor.

See nana.info for details on configuring the behaviour. You also need to include the nana library by using -lnana if you use the default setup.

Releases

8 releases since Debian 2.1 (Slink); the text changed 2 times.

  1. 2.1
  2. 2.2–4.0
  3. 5.0–7

Author

Phil Maker <[email protected]>

From nana 2.5-12+deb7u1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.