logging: add a FileHandlerFactory class
authorAdam Simpkins <simpkins@fb.com>
Wed, 29 Nov 2017 01:44:55 +0000 (17:44 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 29 Nov 2017 01:52:55 +0000 (17:52 -0800)
commit70230b7a106820807c8d74fcf3d21ebab3442fbb
tree35ead60b5634a211471e7a4ee70e9fbeb2238d95
parent4c6781bf95a7e5e0af802e162f4cb3b310203bf4
logging: add a FileHandlerFactory class

Summary:
Add a new LogHandlerFactory interface for creating LogHandler objects from a
LogHandlerConfig.

Also add an initial FileHandlerFactory implementation capable of creating
LogHandler objects that write to a file descriptor.

Reviewed By: bolinfest

Differential Revision: D6200567

fbshipit-source-id: 14b86fc14ad475223aa4b57d45c40638b48c7594
CMakeLists.txt
folly/Makefile.am
folly/experimental/logging/AsyncFileWriter.cpp
folly/experimental/logging/AsyncFileWriter.h
folly/experimental/logging/FileHandlerFactory.cpp [new file with mode: 0644]
folly/experimental/logging/FileHandlerFactory.h [new file with mode: 0644]
folly/experimental/logging/ImmediateFileWriter.h
folly/experimental/logging/LogHandlerFactory.h [new file with mode: 0644]
folly/experimental/logging/Makefile.am
folly/experimental/logging/StandardLogHandler.h
folly/experimental/logging/test/FileHandlerFactoryTest.cpp [new file with mode: 0644]