diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-10-19 00:12:50 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-10-19 00:31:19 +0200 |
| commit | e7c74917191a4953d495295b65732aa3549ba753 (patch) | |
| tree | fde3fc6080786b3e3e4526b3793bacbb390d2b17 /src/logger.hh | |
| parent | 4f6ead7c2c646b6b866274299c05d08170d2dfb0 (diff) | |
Add new module websocket and use it
Implement /api/v1/events which will send out messages when
things change, such as the main controller.
Diffstat (limited to 'src/logger.hh')
| -rw-r--r-- | src/logger.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logger.hh b/src/logger.hh index 5c1e599..88edcf3 100644 --- a/src/logger.hh +++ b/src/logger.hh @@ -36,6 +36,9 @@ std::unique_ptr<Logger> syslog(std::string ident, bool verbose = false); [[nodiscard]] std::unique_ptr<Logger> stderr(bool verbose = false); +[[nodiscard]] +std::unique_ptr<Logger> prefix(Logger& logger, std::string prefix); + } // namespace logger #endif // LOGGER_HH |
