70#define SYSLOG_BUF_CONTENT_SIZE 1024
71#define SYSLOG_BUF_NULL_BYTE_SIZE 1
72#define SYSLOG_BUF_MARKER_BYTE_SIZE 1
74#define SYSLOG_BUF_TOTAL_SIZE (SYSLOG_BUF_CONTENT_SIZE + \
75 SYSLOG_BUF_NULL_BYTE_SIZE + \
76 SYSLOG_BUF_MARKER_BYTE_SIZE)
78#define SYSLOG_BUF_NULL_BYTE_INDEX (SYSLOG_BUF_CONTENT_SIZE + \
79 SYSLOG_BUF_NULL_BYTE_SIZE - 1)
81#define SYSLOG_BUF_MARKER_BYTE_INDEX (SYSLOG_BUF_CONTENT_SIZE + \
82 SYSLOG_BUF_NULL_BYTE_SIZE + \
83 SYSLOG_BUF_MARKER_BYTE_SIZE - 1)
85#define LOG_PRIO_NONE (-1)
101typedef struct syslog_msg_desc_t_ {
115 char buf[SYSLOG_BUF_TOTAL_SIZE];
log_debug_app_t
syslog wants to know what app is logging ...
Definition: log.h:367
log_debug_t
The debug level enumerations used in util/log.c.
Definition: log.h:348
void log_util_init_buf(syslog_msg_desc_t *dp)
Initialize the contents of an internal log buffer descriptor.
Definition: log_util.c:93
void log_util_flush(syslog_msg_desc_t *desc)
Flush contents of internal buffer to external logging system.
Definition: log_util.c:530
void log_util_logbuf_common(syslog_msg_desc_t *desc, log_debug_app_t app, log_debug_t level, log_debug_t sub_level, const char *fstr, va_list args)
Send formatted string output to an internal log buffer.
Definition: log_util.c:554
void log_util_logbuf_append(syslog_msg_desc_t *desc, log_debug_app_t app, log_debug_t level, log_debug_t sub_level, const char *fstr, va_list args)
Append formatted string output to an internal log buffer.
Definition: log_util.c:593
NCX System Logging Manager.
Global error messages for status code enumerations.
Syslog/Vendor Message Buffer descriptor.
Definition: log_util.h:101
uint idid
internal idid field
Definition: log_util.h:102
uint32 len
message len
Definition: log_util.h:106
log_debug_t level
debug level to use
Definition: log_util.h:113
boolean write_pending
internal write pending
Definition: log_util.h:111
int32 remaining
remaining to write
Definition: log_util.h:107
log_debug_t sub_level
sub-level to use
Definition: log_util.h:114
char * end
end of message
Definition: log_util.h:104
char * ptr
internal message pointer
Definition: log_util.h:105
boolean first_time
first callflag
Definition: log_util.h:110
log_debug_app_t app
app to use in message
Definition: log_util.h:112
char * start
start of message
Definition: log_util.h:103
boolean initialized
initialization done
Definition: log_util.h:108
boolean was_append
was appended flag
Definition: log_util.h:109