File: L.3

package info (click to toggle)
nana 2.1-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,416 kB
  • ctags: 470
  • sloc: ansic: 4,369; sh: 2,271; makefile: 194; cpp: 106; tcl: 48; lisp: 39
file content (44 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.TH L 3
.SH NAME 
L - generate logging messages in C and C++.
.SH SYNOPSIS

#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,...)

.SH DESCRIPTION

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.

.SH SEE ALSO
nana-clg(1), nana(1), nana(3), I(3), DI(3), L(3), DL(3), Q(3) and nana.info.

The nana.info file is the primary documentation for this package.
.SH AUTHOR
Phil Maker <pjm@cs.ntu.edu.au>