log: added log_early_init() for early debug messages

This commit is contained in:
Max Kellermann
2009-02-19 08:35:20 +01:00
parent 84437acffb
commit 0a0736fc4e
3 changed files with 25 additions and 0 deletions

View File

@@ -217,6 +217,15 @@ parse_log_level(const char *value, unsigned line)
}
}
void
log_early_init(bool verbose)
{
if (verbose)
log_threshold = G_LOG_LEVEL_DEBUG;
log_init_stdout();
}
void log_init(bool verbose, bool use_stdout)
{
const struct config_param *param;