added some tests
This commit is contained in:
parent
d64dd9790b
commit
fc65a743eb
@ -60,8 +60,12 @@ int main(int argc, const char * argv[]) {
|
|||||||
}
|
}
|
||||||
std::cout << "hello, tester\n";
|
std::cout << "hello, tester\n";
|
||||||
sc::logger logger("tester", sc::loglevel::debug);
|
sc::logger logger("tester", sc::loglevel::debug);
|
||||||
_info(logger, 42, " = ", 6, " x ", 7);
|
|
||||||
_debug(logger, "efkes proberen");
|
_debug(logger, "efkes proberen");
|
||||||
|
_info(logger, 42, " = ", 6, " x ", 7);
|
||||||
|
_warning(logger, "laatste waarschuwing");
|
||||||
|
_error(logger, "foutje, bedankt");
|
||||||
|
_critical(logger, "meltdown imminent");
|
||||||
|
_info(logger, "");
|
||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
std::cerr << "tester: " << ex.what() << '\n';
|
std::cerr << "tester: " << ex.what() << '\n';
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user