Browse Source

moved spdlog to module and fixed stuff

testing
totallyfake 5 years ago
parent
commit
e3914376fb
  1. 3
      .gitmodules
  2. 1
      spdlog
  3. 2
      src/loggersetup.cpp

3
.gitmodules vendored

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
[submodule "spdlog"]
path = spdlog
url = https://github.com/gabime/spdlog.git

1
spdlog

@ -0,0 +1 @@ @@ -0,0 +1 @@
Subproject commit d460c3026a886c761eee35a5a143978eaf56d1d0

2
src/loggersetup.cpp

@ -12,7 +12,7 @@ namespace vtk { @@ -12,7 +12,7 @@ namespace vtk {
void LoggerSetup::setup() {
std::vector<spdlog::sink_ptr> logSinks;
logSinks.push_back(std::make_shared<spdlog::sinks::rotating_file_sink_mt>("logs/log", "log", 1048576 * 5, 3));
logSinks.push_back(std::make_shared<spdlog::sinks::rotating_file_sink_mt>("logs/log", 1048576 * 5, 3));
logSinks.push_back(std::make_shared<spdlog::sinks::stdout_sink_st>());
auto generalLogger = std::make_shared<spdlog::logger>("general", begin(logSinks), end(logSinks));
auto fileLogger = std::make_shared<spdlog::logger>("file", begin(logSinks), end(logSinks));

Loading…
Cancel
Save