return;
/* append the current log prefix to the string buffer */
+ if (params->base_str_prefix != NULL && !glmctx->replace_prefix)
+ str_append(str_out, params->base_str_prefix);
str_append_str(str_out, glmctx->log_prefix);
if (glmctx->message != NULL) {
if (event == params->base_event) {
/* Append the message to the provided string buffer. */
event_get_log_message_str_out(glmctx, fmt, args);
+ /* Insert the base send prefix */
+ if (params->base_send_prefix != NULL) {
+ str_insert(glmctx->log_prefix, 0,
+ params->base_send_prefix);
+ ret = TRUE;
+ }
}
/* Call the message amendment callback for this event if there is one.
}
if (event->parent == NULL) {
event_get_log_message_str_out(glmctx, fmt, args);
+ if (params->base_event == NULL &&
+ params->base_send_prefix != NULL &&
+ !glmctx->replace_prefix) {
+ str_insert(glmctx->log_prefix, 0,
+ params->base_send_prefix);
+ ret = TRUE;
+ }
} else if (!event->log_prefix_replace &&
(!params->no_send || !glmctx->str_out_done)) {
if (event_get_log_message(event->parent, glmctx, fmt, args))
logging in parallel logs that are visible to users. */
string_t *base_str_out;
+ /* Prefix inserted at the base_event for the sent log message. */
+ const char *base_send_prefix;
+ /* Prefix inserted at the base_event for the log message appended to the
+ string buffer. */
+ const char *base_str_prefix;
+
/* Don't actually send the event; only append to the provided string
buffer (base_str_out must not be NULL). */
bool no_send:1;