src/basic/syslog-util.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "basic-forward.h" |
| 5 | |
| 6 | DECLARE_STRING_TABLE_LOOKUP_WITH_FALLBACK(log_facility_unshifted, int); |
| 7 | bool log_facility_unshifted_is_valid(int faciliy); |
| 8 | |
| 9 | DECLARE_STRING_TABLE_LOOKUP_WITH_FALLBACK(log_level, int); |
| 10 | bool log_level_is_valid(int level); |
| 11 | |
| 12 | int syslog_parse_priority(const char **p, int *priority, bool with_facility); |
| 13 | |
| 14 | bool log_namespace_name_valid(const char *s); |