Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change logs to verbose logs #1

Open
davidalbertonogueira opened this issue Nov 10, 2016 · 3 comments
Open

Change logs to verbose logs #1

davidalbertonogueira opened this issue Nov 10, 2016 · 3 comments

Comments

@davidalbertonogueira
Copy link
Owner

Check example: easylogging/easyloggingpp/samples/STL/configurator.cpp :

#include "easylogging++.h"

INITIALIZE_EASYLOGGINGPP

int main(int argc, char** argv) {
    START_EASYLOGGINGPP(argc, argv);
    LOG(INFO) << "Info log using 'default' logger before using configuration";
   
    el::Configurations confFromFile("../default-logger.conf");
 
    el::Loggers::reconfigureAllLoggers(confFromFile); 
     
    LOG(INFO) << "Info log after manually configuring 'default' logger";
    el::Loggers::getLogger("default")->reconfigure();
    LOG(ERROR) << "Error log";
    LOG(WARNING) << "WARNING! log";
    VLOG(1) << "Verbose log 1";
    VLOG(2) << "Verbose log 2";
    return 0;
}
@smiranda
Copy link

Consider removing the easylogging dependency

@smiranda
Copy link

any news on this ?

@smiranda
Copy link

You might consider extracting the logging facilities from https://github.com/smiranda/microunit/blob/master/microunit.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants