Lines Matching refs:priority
119 static void forward_syslog_raw(Server *s, int priority, const char *buffer, const struct ucred *ucred, const struct timeval *tv) {
125 if (LOG_PRI(priority) > s->max_level_syslog)
132 void server_forward_syslog(Server *s, int priority, const char *identifier, const char *message, const struct ucred *ucred, const struct timeval *tv) {
134 char header_priority[DECIMAL_STR_MAX(priority) + 3], header_time[64],
142 assert(priority >= 0);
143 assert(priority <= 999);
146 if (LOG_PRI(priority) > s->max_level_syslog)
149 /* First: priority field */
150 xsprintf(header_priority, "<%i>", priority);
188 int syslog_fixup_facility(int priority) {
190 if ((priority & LOG_FACMASK) == 0)
191 return (priority & LOG_PRIMASK) | LOG_USER;
193 return priority;
331 int priority = LOG_USER | LOG_INFO;
339 syslog_parse_priority(&buf, &priority, true);
342 forward_syslog_raw(s, priority, orig, ucred, tv);
348 server_forward_kmsg(s, priority, identifier, buf, ucred);
351 server_forward_console(s, priority, identifier, buf, ucred);
354 server_forward_wall(s, priority, identifier, buf, ucred);
358 xsprintf(syslog_priority, "PRIORITY=%i", priority & LOG_PRIMASK);
361 if (priority & LOG_FACMASK) {
362 xsprintf(syslog_facility, "SYSLOG_FACILITY=%i", LOG_FAC(priority));
382 server_dispatch_message(s, iovec, n, ELEMENTSOF(iovec), ucred, tv, label, label_len, NULL, priority, 0);
433 return log_error_errno(r, "Failed to adjust syslog event source priority: %m");