logging: add LoggerDB::flushAllHandlers()
authorAdam Simpkins <simpkins@fb.com>
Tue, 20 Jun 2017 18:02:00 +0000 (11:02 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 20 Jun 2017 18:06:44 +0000 (11:06 -0700)
commita57663387e4e523e8a8a4d2c3e0f10c7d41a6822
tree5c626d7cebfbe2e599a94c94a6376e34188200d1
parentd65439dd5a2b3325fa5bff8ff76f1515c74cf258
logging: add LoggerDB::flushAllHandlers()

Summary:
Add a method to flush all LogHandler objects.

This will be necessary to implement FB_LOG(FATAL), as we will want to flush all
outstanding messages before crashing.

Reviewed By: wez

Differential Revision: D5189501

fbshipit-source-id: faf260b8e71e5dfed4a3b1c1aee32f072bd7b764
folly/experimental/logging/LogCategory.cpp
folly/experimental/logging/LogCategory.h
folly/experimental/logging/LoggerDB.cpp
folly/experimental/logging/LoggerDB.h
folly/experimental/logging/test/LoggerDBTest.cpp
folly/experimental/logging/test/TestLogHandler.h