spdlog/example/example.cpp

28 lines
438 B
C++
Raw Normal View History

2014-02-21 15:51:54 -05:00
// example.cpp : Simple logger example
2014-01-25 08:52:10 -05:00
//
2014-10-11 21:40:11 -04:00
#define FFLOG_ENABLE_TRACE
#include <iostream>
2014-01-26 14:23:26 -05:00
#include "c11log/logger.h"
2014-10-09 19:46:03 -04:00
#include "c11log/sinks/stdout_sinks.h"
2014-10-11 21:40:11 -04:00
#include "c11log/sinks/file_sinks.h"
using namespace std;
2014-10-18 12:04:24 -04:00
using namespace c11log;
2014-10-09 19:46:03 -04:00
2014-03-03 18:23:38 -05:00
2014-10-18 12:04:24 -04:00
details::fast_oss f(const std::string& what)
{
details::fast_oss oss;
oss << what;
return oss;
}
2014-10-24 17:44:02 -04:00
int main(int, char* [])
2014-10-18 12:04:24 -04:00
{
2014-10-09 20:36:50 -04:00
2014-10-18 12:04:24 -04:00
auto foss = f("test2");
foss.str();
2014-03-28 18:37:29 -04:00
return 0;
}
2014-01-25 08:52:10 -05:00