projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logging: add a LogHandler::getConfig() method
[folly.git]
/
folly
/
experimental
/
logging
/
StandardLogHandler.cpp
diff --git
a/folly/experimental/logging/StandardLogHandler.cpp
b/folly/experimental/logging/StandardLogHandler.cpp
index 9e43cd6da84806d7f78fb9df71217792fe1cbb17..00019aba15d3255be65f28ce32f9b007f9d7c7f4 100644
(file)
--- a/
folly/experimental/logging/StandardLogHandler.cpp
+++ b/
folly/experimental/logging/StandardLogHandler.cpp
@@
-22,9
+22,12
@@
namespace folly {
StandardLogHandler::StandardLogHandler(
namespace folly {
StandardLogHandler::StandardLogHandler(
+ LogHandlerConfig config,
std::shared_ptr<LogFormatter> formatter,
std::shared_ptr<LogWriter> writer)
std::shared_ptr<LogFormatter> formatter,
std::shared_ptr<LogWriter> writer)
- : formatter_{std::move(formatter)}, writer_{std::move(writer)} {}
+ : formatter_{std::move(formatter)},
+ writer_{std::move(writer)},
+ config_{config} {}
StandardLogHandler::~StandardLogHandler() {}
StandardLogHandler::~StandardLogHandler() {}
@@
-40,4
+43,9
@@
void StandardLogHandler::handleMessage(
void StandardLogHandler::flush() {
writer_->flush();
}
void StandardLogHandler::flush() {
writer_->flush();
}
+
+LogHandlerConfig StandardLogHandler::getConfig() const {
+ return config_;
+}
+
} // namespace folly
} // namespace folly