2015-05-15 13:30:37 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
#include <fstream>
|
|
|
|
#include <string>
|
|
|
|
#include <ostream>
|
|
|
|
#include <chrono>
|
2015-05-15 13:54:01 -04:00
|
|
|
#include <exception>
|
|
|
|
|
2015-05-15 13:30:37 -04:00
|
|
|
#include "catch.hpp"
|
|
|
|
#include "../include/spdlog/spdlog.h"
|
2015-05-15 13:54:01 -04:00
|
|
|
#include "../include/spdlog/sinks/null_sink.h"
|
2015-12-12 13:53:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
static void prepare_logdir()
|
|
|
|
{
|
|
|
|
spdlog::drop_all();
|
|
|
|
#ifdef _WIN32
|
|
|
|
auto rv = system("del /F /Q logs\\*");
|
|
|
|
#else
|
|
|
|
auto rv = system("rm -f logs/*");
|
|
|
|
#endif
|
|
|
|
}
|