logging: add a LogHandler::getConfig() method
[folly.git] / folly / experimental / logging / LogHandler.h
index 525eea4dff3006888b277b4cc42e57c78e67807b..8791ab0724c9c45c0c6c498e2efef580d99bf3f6 100644 (file)
@@ -22,6 +22,7 @@
 namespace folly {
 
 class LogCategory;
+class LogHandlerConfig;
 class LogMessage;
 
 /**
@@ -79,5 +80,11 @@ class LogHandler {
    * started will not necessarily be processed by the flush call.
    */
   virtual void flush() = 0;
+
+  /**
+   * Return a LogHandlerConfig object describing the configuration of this
+   * LogHandler.
+   */
+  virtual LogHandlerConfig getConfig() const = 0;
 };
 } // namespace folly