File: prog.cpp

package info (click to toggle)
easyloggingpp 9.97.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,864 kB
  • sloc: cpp: 11,415; python: 2,336; sh: 337; makefile: 24
file content (21 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define ELPP_STL_LOGGING
// #define ELPP_FEATURE_CRASH_LOG -- Stack trace not available for MinGW GCC
#define ELPP_PERFORMANCE_MICROSECONDS
#define ELPP_LOG_STD_ARRAY
#define ELPP_LOG_UNORDERED_MAP
#define ELPP_UNORDERED_SET
#include "easylogging++.h"

INITIALIZE_EASYLOGGINGPP

TIMED_SCOPE(appTimer, "myapplication");


int main(int argc, const char* argv[]) {
    el::Loggers::removeFlag(el::LoggingFlag::AllowVerboseIfModuleNotSpecified);

    TIMED_BLOCK(itr, "write-simple") {
        LOG(INFO) << "Test " << __FILE__;
    }
    VLOG(3) << "Test";
}