mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-05-31 17:53:59 +00:00
20 lines
492 B
C++
20 lines
492 B
C++
/**
|
|
* @file src/services/logging/log_producer.cc
|
|
* @brief LogProducer implementation for asynchronous pipeline logging.
|
|
*/
|
|
|
|
#include "services/logging/log_producer.h"
|
|
|
|
#include <chrono>
|
|
#include <optional>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
#include "concurrency/bounded_channel.h"
|
|
#include "services/logging/log_entry.h"
|
|
|
|
LogProducer::LogProducer(BoundedChannel<LogEntry>& channel)
|
|
: channel_(channel) {}
|
|
|
|
void LogProducer::Log(const LogEntry& entry) { channel_.Send(entry); }
|