Browse Source

moved spdlog to module and fixed stuff

testing
totallyfake 1 year ago
parent
commit
e3914376fb
3 changed files with 5 additions and 1 deletions
  1. 3
    0
      .gitmodules
  2. 1
    0
      spdlog
  3. 1
    1
      src/loggersetup.cpp

+ 3
- 0
.gitmodules View File

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

+ 1
- 0
spdlog

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

+ 1
- 1
src/loggersetup.cpp View File

@@ -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