encfs/vendor/github.com/muflihun/easyloggingpp/samples/STL/shared-static-libs/myapp.cpp
Valient Gough 5f0806c5cc Add "easylogging" from "https://github.com/muflihun/easyloggingpp@master"
git-vendor-name: easylogging
git-vendor-dir: vendor/github.com/muflihun/easyloggingpp
git-vendor-repository: https://github.com/muflihun/easyloggingpp
git-vendor-ref: master
2017-08-05 23:23:41 -07:00

18 lines
493 B
C++

#include <mylib.hpp>
#include "easylogging++.h"
INITIALIZE_EASYLOGGINGPP
int main(int argc, char** argv) {
int result = 0;
LOG(INFO) << "Log from app";
//
// You can choose MyLib() constructor
// but be aware this will cause vlog to not work because Easylogging++
// does not know verbose logging level
//
// For your peace of mind, you may pass on const_cast<const char**>(argv) instead
//
MyLib lib(argc, argv);
lib.event(1);
return result;
}