log configuration support functions
| 14 | |
| 15 | // log configuration support functions |
| 16 | struct LoggingSingletons |
| 17 | { |
| 18 | std::function<pmon::util::log::GlobalPolicy& ()> getGlobalPolicy; |
| 19 | std::function<pmon::util::log::LineTable& ()> getLineTable; |
| 20 | operator bool() const noexcept |
| 21 | { |
| 22 | return getGlobalPolicy || getLineTable; |
| 23 | } |
| 24 | }; |
| 25 | // function to connect (subordinate) the dll logging system to the exe one |
| 26 | // replace default channel (nullptr) with a channel that copies entries to pChannel |
| 27 | // optionally hook up an id table to copy entries to as well |