1
0
Fork 0

turn on logging as early as possible

This commit is contained in:
Jan Steemann 2016-04-22 14:45:16 +02:00
parent 53f05f04d4
commit 8c9780abec
1 changed files with 6 additions and 3 deletions

View File

@ -170,14 +170,17 @@ void LoggerFeature::prepare() {
if (!_backgrounded && _foregroundTty) {
LogAppender::addTtyAppender();
}
Logger::initialize(false);
}
void LoggerFeature::start() {
LOG_TOPIC(TRACE, Logger::STARTUP) << name() << "::start";
if (!_forceDirect && _threaded) {
Logger::flush();
Logger::shutdown(true);
if (_forceDirect) {
Logger::initialize(false);
} else {
Logger::initialize(_threaded);
}
}