IPC..... | <04> | 1016120237s|706271us | [000004] : | 0003 | @ | main | > | No such process | (0000000543) |
dbg | dbg | time | msg | errno | module | errno message | opt args | ||
keywd | level | seconds|milisec | number |
Args: | |||
_ fmt | : format string |
Note: | |||
The format string is printed as-is for each log entry, except for escape sequences | |||
of the form '%d*?', where d* desings an optionnal decimal number indicating the size | |||
of this field, and ? is a character indicating the field type. Here is a list of | |||
valid types, and their function: | |||
_ % | : a litteral '%' character | ||
_ k | : log key | ||
_ l | : log level | ||
_ s | : time of error (seconds component) | ||
_ u | : time of error (microseconds component) | ||
_ n | : entry number | ||
_ c | : calling function or module | ||
_ e | : error number (LibC errno) | ||
_ r | : error message related to the error number | ||
_ m | : user message | ||
The default format is '%8k<%2l> %10ss|%6uus [%6n] : %4e @ %c > %r (%m)'. |
Args: | |||
_ key | : filter key identifier | ||
_ fd | : file descriptor representing an open stream to use to print traces |
Note: | |||
If the key argument is the empty string, it designs the default (generic) filter, | |||
whose caracteristics are used as a basis for new filters, or when filter is unspecified. | |||
When the key is NULL, it designs ALL filters except the default. |
Args: | |||
_ key | : filter key identifier |
Returns: | |||
_ 0 | : if key was NULL, or did not refer to an existing filter | ||
else the current mask of active debugging levels. |
Note: | |||
If the key argument is the empty string, it designs the default (generic) filter, | |||
whose caracteristics are used as a basis for new filters, or when filter is unspecified. | |||
When the key is NULL, it designs ALL filters except the default. | |||
The levels mask set bits positions (as in '<<') design debugging levels set ON. |
Args: | |||
_ key | : filter key identifier | ||
_ lev | : debugging levels mask |
Note: | |||
If the key argument is the empty string, it designs the default (generic) filter, | |||
whose caracteristics are used as a basis for new filters, or when filter is unspecified. | |||
When the key is NULL, it designs ALL filters except the default. | |||
The levels mask set bits positions (as in '<<') design debugging levels set ON. |
Args: | |||
_ key | : filter key identifier | ||
_ lev | : debugging levels mask |
Note: | |||
If the key argument is the empty string, it designs the default (generic) filter, | |||
whose caracteristics are used as a basis for new filters, or when filter is unspecified. | |||
When the key is NULL, it designs ALL filters except the default. | |||
The levels mask set bits positions (as in '<<') design debugging levels set OFF. |
Args: | |||
_ key | : filter key identifier | ||
_ err | : concerned errno |
Note: | |||
If the key argument is the empty string, it designs the default (generic) filter, | |||
whose caracteristics are used as a basis for new filters, or when filter is unspecified. | |||
When the key is NULL, it designs ALL filters except the default. | |||
When an error with this filter key AND this errno is encountered, this triggers | |||
immediate termination (after the printing of a log entry), through _exit (2). |
Args: | |||
_ key | : filter key identifier | ||
_ err | : concerned errno |
Note: | |||
If the key argument is the empty string, it designs the default (generic) filter, | |||
whose caracteristics are used as a basis for new filters, or when filter is unspecified. | |||
When the key is NULL, it designs ALL filters except the default. |
Args: | |||
_ mod | : name of the function/module from which this call was issued | ||
_ key | : key of filter to be used | ||
_ lev | : debugging level at which this error is raised | ||
_ mes | : optional message to add to transcript | ||
_ ... | : arguments to be formatted in the mes string |
Note: | |||
Use a NULL value for mes when no message needs to be printed. | |||
Variable arguments are formatted following escapes in the message string, | |||
taking the form '%d*?' where d* is any number of digits and ? is either: | |||
_ % | : a litteral '%' character is printed | ||
_ c | : the argument is a character | ||
_ s | : the argument is a string, and will be printed as-is | ||
_ d | : the argument is a signed number, printed in decimal form | ||
_ u | : the argument is an unsigned number, printed in decimal form | ||
_ x | : the argument is an unsigned number, printed in hexadecimal form | ||
For s,u,x, the digits before the conversion character give the maximum | |||
number of characters to be printed. |
Args: | |||
_ mod | : name of the function/module from which this call was issued | ||
_ key | : key of filter to be used | ||
_ lev | : debugging level at which this error is raised | ||
_ mes | : optional message to add to transcript | ||
_ ap | : optional variable arguments list |
Note: | |||
Use a NULL value for mes when no message needs to be printed. | |||
Variable arguments are formatted following escapes in the message string, | |||
taking the form '%d*?' where d* is any number of digits and ? is either: | |||
_ % | : a litteral '%' character is printed | ||
_ c | : the argument is a character | ||
_ s | : the argument is a string, and will be printed as-is | ||
_ d | : the argument is a signed number, printed in decimal form | ||
_ u | : the argument is an unsigned number, printed in decimal form | ||
_ x | : the argument is an unsigned number, printed in hexadecimal form | ||
For s,u,x, the digits before the conversion character give the maximum | |||
number of characters to be printed. | |||
This function does not call va_start (of course) and va_end, so the value of | |||
ap is undefined after the call, and va_end must be called by the application. |
Name: | Yann LANDRIN-SCHWEITZER aka Varkhan | |
Mail: | varkhan at varkhan dot net | |
Home: | http://www.varkhan.net/ |