rework logging to make it more modular

This commit is contained in:
Lennart Poettering 2009-02-21 22:45:56 +01:00
parent 9b74afcfa3
commit 77779ead6d
9 changed files with 161 additions and 109 deletions

View file

@ -1350,7 +1350,7 @@ static int pa_cli_command_log_level(pa_core *c, pa_tokenizer *t, pa_strbuf *buf,
return -1;
}
pa_log_set_maximal_level(level);
pa_log_set_level(level);
return 0;
}
@ -1374,7 +1374,7 @@ static int pa_cli_command_log_meta(pa_core *c, pa_tokenizer *t, pa_strbuf *buf,
return -1;
}
pa_log_set_show_meta(b);
pa_log_set_flags(PA_LOG_PRINT_META, b ? PA_LOG_SET : PA_LOG_UNSET);
return 0;
}
@ -1398,7 +1398,7 @@ static int pa_cli_command_log_time(pa_core *c, pa_tokenizer *t, pa_strbuf *buf,
return -1;
}
pa_log_set_show_time(b);
pa_log_set_flags(PA_LOG_PRINT_TIME, b ? PA_LOG_SET : PA_LOG_UNSET);
return 0;
}