18 lines
385 B
C++
18 lines
385 B
C++
|
#pragma once
|
||
|
|
||
|
#include <base/logger.hpp>
|
||
|
|
||
|
namespace base {
|
||
|
|
||
|
/// A logger sink implementation that prints to standard output.
|
||
|
struct StdoutLoggerSink : public Logger::Sink {
|
||
|
static StdoutLoggerSink& The();
|
||
|
|
||
|
void OutputMessage(std::string_view message) override;
|
||
|
};
|
||
|
|
||
|
/// Attach the stdout logger sink to the global Lucore logger.
|
||
|
void LoggerAttachStdout();
|
||
|
|
||
|
} // namespace base
|