poser
A C framework for POsix SERvices
|
declarations for the PSC_Log class More...
#include <poser/decl.h>
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | PSC_MAXLOGLINE 16384 |
Maximum lenght for a log message. | |
Typedefs | |
typedef void(* | PSC_LogWriter) (PSC_LogLevel level, const char *message, void *data) |
A log writer. | |
Enumerations | |
enum | PSC_LogLevel { PSC_L_FATAL , PSC_L_ERROR , PSC_L_WARNING , PSC_L_INFO , PSC_L_DEBUG } |
Log levels. More... | |
declarations for the PSC_Log class
#define PSC_MAXLOGLINE 16384 |
Maximum lenght for a log message.
This is the maximum length that can safely be used for a single log message.
typedef void(* PSC_LogWriter) (PSC_LogLevel level, const char *message, void *data) |
A log writer.
Called for any log message to actually write it somewhere.
level | the log level |
message | the log message |
data | optional context data for the writer |
enum PSC_LogLevel |