Example for using the logging facility
- Author
- MIP
#include <stdlib.h>
#include <Base/Debug/LogFacility.hh>
using namespace BIAS;
using namespace std;
class MyTestClass {
public:
MyTestClass() {
};
};
int main(int argc, char *argv[])
{
if (argc>1){
int ll=atoi(argv[1]);
cout <<"Now setting current loglevel to: "<<ll<<endl;
if (ll==5) {
}
if (ll==6){
}
}
if (argc>2){
cout <<"Now setting log stream tofile: "<<argv[2]<<endl;
}
BLD("This is a debug line number:"<<3);
BLI("This is an info line");
BLW("This is a warning line");
BLF("This is a fatal error");
return 0;
}