composite.cpp 490 B

12345678910111213141516171819
  1. #include "composite.h"
  2. #include "uninitialized_creator.h"
  3. void TCompositeLogBackend::WriteData(const TLogRecord& rec) {
  4. for (auto& slave: Slaves) {
  5. slave->WriteData(rec);
  6. }
  7. }
  8. void TCompositeLogBackend::ReopenLog() {
  9. for (auto& slave : Slaves) {
  10. slave->ReopenLog();
  11. }
  12. }
  13. void TCompositeLogBackend::AddLogBackend(THolder<TLogBackend>&& backend) {
  14. LogPriority = Max(LogPriority, backend->FiltrationLevel());
  15. Slaves.emplace_back(std::move(backend));
  16. }