| 16 | namespace ceph::logging { |
| 17 | |
| 18 | Graylog::Graylog(const SubsystemMap * const s, const std::string &logger) |
| 19 | : m_subs(s), |
| 20 | m_logger(std::move(logger)), |
| 21 | m_ostream_compressed(std::stringstream::in | |
| 22 | std::stringstream::out | |
| 23 | std::stringstream::binary) |
| 24 | { |
| 25 | m_formatter = std::unique_ptr<Formatter>(Formatter::create("json")); |
| 26 | m_formatter_section = std::unique_ptr<Formatter>(Formatter::create("json")); |
| 27 | } |
| 28 | |
| 29 | Graylog::Graylog(const std::string &logger) |
| 30 | : Graylog(nullptr, logger) |