mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-29 23:03:18 +00:00
refactoring log class
This commit is contained in:
parent
ca291b6573
commit
04e9366cb8
12 changed files with 105 additions and 11 deletions
17
src/Util/log.cpp
Normal file
17
src/Util/log.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue