staticconstchar* syslog_log_tag = nullptr; // The "mask" is of _enabled_ log priorities, and defaults to all. staticint syslog_priority_mask = LOG_UPTO(LOG_DEBUG); staticint syslog_options = 0;
int setlogmask(int new_mask) { int old_mask = syslog_priority_mask; // 0 is used to query the current mask. if (new_mask != 0) {
syslog_priority_mask = new_mask;
} return old_mask;
}
// We can't let async_safe_format_log do the formatting because it doesn't // support all the printf functionality. char log_line[1024]; int n = vsnprintf(log_line, sizeof(log_line), fmt, args); if (n < 0) return;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.