Create Two Log Handlers: Cronolog and the HHVM Error Log
commit03bff0eef0732108038685d4f4562872766dc169
authorBrett Chik <bchik@fb.com>
Fri, 3 Sep 2021 18:32:58 +0000 (3 11:32 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 3 Sep 2021 18:34:27 +0000 (3 11:34 -0700)
treecc8e8d3e2040c6cbd642796fd25c8ab4ef8e41cd
parentb8b4a9bf524230a250f88d6ec59c1ec75038c3c9
Create Two Log Handlers: Cronolog and the HHVM Error Log

Summary: Logging in Facts is fairly invisible to users and can only be seen by turning on trace flags.  This implements two log handlers using the folly Logging system.  One log handler wraps the Cronolog class used in HHVM.  This will create a log file dedicated to Facts and the Cronolog class will take care of rotating the file on a daily basis.  The other log handler simply calls Logger::Error() to include information in the regular HHVM log as well as the configured thread log.

Reviewed By: jthemphill

Differential Revision: D30567044

fbshipit-source-id: 16909bc1c5fbc7c3c9505e5cf2a5f9f4f5aa4ee3
hphp/runtime/base/runtime-option.cpp
hphp/runtime/base/runtime-option.h
hphp/runtime/ext/facts/config.cmake
hphp/runtime/ext/facts/ext_facts.cpp
hphp/runtime/ext/facts/logging.cpp [new file with mode: 0644]
hphp/runtime/ext/facts/logging.h [new file with mode: 0644]