facility = strtok_r(NULL, ":", &save_ptr);
- if (!facility || !strcmp(facility, "ANY")) {
+ if (!facility || !strcasecmp(facility, "ANY")) {
e_facility = VLF_ANY_FACILITY;
} else {
e_facility = vlog_get_facility_val(facility);
}
}
- if (!strcmp(module, "PATTERN")) {
+ if (!strcasecmp(module, "PATTERN")) {
vlog_set_pattern(e_facility, save_ptr);
break;
} else {
char *level;
enum vlog_level e_level;
- if (!strcmp(module, "ANY")) {
+ if (!strcasecmp(module, "ANY")) {
e_module = NULL;
} else {
e_module = vlog_module_from_name(module);
VLOG_ERR("current time is negative: %s (%ld)", s, (long int) now);
}
- unixctl_command_register("vlog/set", vlog_unixctl_set, NULL);
- unixctl_command_register("vlog/list", vlog_unixctl_list, NULL);
- unixctl_command_register("vlog/reopen", vlog_unixctl_reopen, NULL);
+ unixctl_command_register("vlog/set",
+ "{module[:facility[:level]] | PATTERN:facility:pattern}",
+ vlog_unixctl_set, NULL);
+ unixctl_command_register("vlog/list", "", vlog_unixctl_list, NULL);
+ unixctl_command_register("vlog/reopen", "", vlog_unixctl_reopen, NULL);
}
/* Closes the logging subsystem. */