logging: add a StandardLogHandlerFactory helper class
authorAdam Simpkins <simpkins@fb.com>
Thu, 7 Dec 2017 01:29:27 +0000 (17:29 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 7 Dec 2017 01:41:43 +0000 (17:41 -0800)
commitf805cad2ece30186014139b1a1dc71aa09a352c4
treed8f923d806f5999b42f75f9e801784ae6773f3cf
parent989c511267f61b5b172c92f39a05f1bf35392ab5
logging: add a StandardLogHandlerFactory helper class

Summary:
This moves some of the FileHandlerFactory code out into a new
StandardLogHandlerFactory helper class.  This will make it easier in the future
to add new LogHandlerFactory implementations that create StandardLogHandler
objects.

In particular, I plan to use this soon to split FileHandlerFactory into two
separate classes: one for writing to files on disk and a separate class for
writing to stdout or stderr.

Reviewed By: yfeldblum

Differential Revision: D6494227

fbshipit-source-id: 52e24250d020d21a5395d2a68fa5bd40bb32fbd4
folly/Makefile.am
folly/experimental/logging/FileHandlerFactory.cpp
folly/experimental/logging/FileHandlerFactory.h
folly/experimental/logging/LoggerDB.cpp
folly/experimental/logging/Makefile.am
folly/experimental/logging/StandardLogHandlerFactory.cpp [new file with mode: 0644]
folly/experimental/logging/StandardLogHandlerFactory.h [new file with mode: 0644]