Home | History | Annotate | Download | only in extensions

Lines Matching refs:level

26 " --log-level level		Level of logging (numeric or see syslog.conf)\n"
36 { .name = "log-level", .has_arg = 1, .flag = 0, .val = '!' },
51 loginfo->level = LOG_DEFAULT_LEVEL;
57 unsigned int level;
61 = { { .name = "alert", .level = LOG_ALERT },
62 { .name = "crit", .level = LOG_CRIT },
63 { .name = "debug", .level = LOG_DEBUG },
64 { .name = "emerg", .level = LOG_EMERG },
65 { .name = "error", .level = LOG_ERR }, /* DEPRECATED */
66 { .name = "info", .level = LOG_INFO },
67 { .name = "notice", .level = LOG_NOTICE },
68 { .name = "panic", .level = LOG_EMERG }, /* DEPRECATED */
69 { .name = "warning", .level = LOG_WARNING }
73 parse_level(const char *level)
78 if (string_to_number(level, 0, 7, &lev) == -1) {
84 if (strncasecmp(level, ip6t_log_names[i].name,
85 strlen(level)) == 0) {
88 "log-level `%s' ambiguous",
89 level);
90 lev = ip6t_log_names[i].level;
96 "log-level `%s' unknown", level);
122 "Can't specify --log-level twice");
126 "Unexpected `!' after --log-level");
128 loginfo->level = parse_level(optarg);
219 printf("flags %u level %u ",
220 loginfo->logflags, loginfo->level);
225 if (loginfo->level == ip6t_log_names[i].level) {
226 printf("level %s ", ip6t_log_names[i].name);
231 printf("UNKNOWN level %u ", loginfo->level);
258 if (loginfo->level != LOG_DEFAULT_LEVEL)
259 printf("--log-level %d ", loginfo->level);