spdlog/example/example.cpp

28 lines
443 B
C++
Raw Normal View History

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