spdlog/example/example.cpp
2014-10-26 01:29:50 +02:00

28 lines
439 B
C++

// example.cpp : Simple logger example
//
#define FFLOG_ENABLE_TRACE
#include <iostream>
#include "c11log/logger.h"
#include "c11log/sinks/stdout_sinks.h"
#include "c11log/sinks/file_sinks.h"
using namespace std;
using namespace c11log;
details::fast_oss f(const std::string& what)
{
details::fast_oss oss;
oss << what;
return oss;
}
int main_(int, char* [])
{
auto foss = f("test2");
foss.str();
return 0;
}