Skip to content

Commit

Permalink
AsyncAppender's queue length not being output on Windows (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
swebb2066 authored Apr 29, 2024
1 parent 81ef59e commit a5b9421
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/cpp/benchmark/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,13 @@ class benchmarker : public ::benchmark::Fixture

static LoggerPtr getLogger(const LogString& pattern = LogString())
{
static struct initializer
{
initializer() { setDefaultAppender(); }
~initializer() { LogManager::shutdown(); }
} x;
LogString name = LOG4CXX_STR("benchmark.fixture");
LoggerPtr result;
setDefaultAppender();
auto r = LogManager::getLoggerRepository();
if (pattern.empty())
result = r->getLogger(name);
Expand Down

0 comments on commit a5b9421

Please sign in to comment.