SSX3LobbyServer/lib/base/stdout_sink.hpp

18 lines
385 B
C++
Raw Permalink Normal View History

#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