#include "config.h"
#include "output.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "len.h"
Go to the source code of this file.
◆ APPEND_MODE
| #define APPEND_MODE |
( |
|
v, |
|
|
|
m, |
|
|
|
c |
|
) |
| |
◆ CASE
Value:case LOG_##s: \
v = strdup(LOG_##s##_NAME); \
break;
Definition at line 15 of file output.c.
◆ CHECK_MODE
| #define CHECK_MODE |
( |
|
i, |
|
|
|
c |
|
) |
| (((i) & (c)) == (c)) |
◆ levelname()
| char * levelname |
( |
int |
lvl | ) |
|
◆ output1()
| void output1 |
( |
int |
lvl, |
|
|
const char * |
msg, |
|
|
|
... |
|
) |
| |
◆ set_output_file()
| int set_output_file |
( |
FILE * |
out | ) |
|
Set the output file (do not forget to call set_output_mode with at least _OUTPUT_MODE_FILE also).
- Parameters
-
- Returns
- return value
Definition at line 45 of file output.c.
◆ set_output_level()
| int set_output_level |
( |
int |
lvl | ) |
|
Set the output level, calls to output with a higher value (less important) are ignored.
- Parameters
-
| [in] | lvl | The desired level. |
- Returns
- The new level.
Definition at line 24 of file output.c.
◆ set_output_mode()
| int set_output_mode |
( |
int |
mode | ) |
|
Set the output mode for following output calls, the mode can be one or more of:
Definition at line 33 of file output.c.