mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-05-01 16:43:08 +03:00
Merge cdc_stream into asset_stream_manager (#26)
Adds start and stop commands to asset_stream_manager. asset_stream_manager will be renamed to cdc_stream next.
This commit is contained in:
@@ -123,6 +123,13 @@ class ConsoleLog : public Log {
|
||||
absl::Mutex mutex_;
|
||||
};
|
||||
|
||||
// Initializes the log in the constructor and shuts it down on destruction.
|
||||
class ScopedLog {
|
||||
public:
|
||||
ScopedLog(std::unique_ptr<Log> log) { Log::Initialize(std::move(log)); }
|
||||
~ScopedLog() { Log::Shutdown(); }
|
||||
};
|
||||
|
||||
class FileLog : public Log {
|
||||
public:
|
||||
FileLog(LogLevel log_level, const char* path);
|
||||
|
||||
Reference in New Issue
Block a user