mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-24 15:31:42 +00:00
17 lines
386 B
C++
17 lines
386 B
C++
|
#include <vector>
|
||
|
#include <spdlog/common.h>
|
||
|
#include <spdlog/sinks/stdout_color_sinks.h>
|
||
|
|
||
|
|
||
|
|
||
|
namespace logging {
|
||
|
std::vector<spdlog::sink_ptr> sinks;
|
||
|
|
||
|
int init(bool use_stdout) {
|
||
|
sinks.clear();//clear existing sinks
|
||
|
if (use_stdout)//if we use stdout window then init it as well
|
||
|
sinks.push_back(std::make_shared<spdlog::sinks::stdout_color_sink_mt>());
|
||
|
|
||
|
return 0;//all ok
|
||
|
}
|
||
|
}
|