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-11 21:40:11 -04:00
|
|
|
#include "c11log/factory.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-23 18:59:39 -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
|
|
|
|
2014-10-13 20:44:40 -04:00
|
|
|
return 0;
|
2014-02-08 18:25:23 -05:00
|
|
|
}
|
2014-01-25 08:52:10 -05:00
|
|
|
|