mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-12 23:37:13 +02:00
fix ci and add formatting (#48)
* add dependency * dont run blocking zmq example and add formatting * format files
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#include "aare/utils/logger.hpp"
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
aare::logger::debug(LOCATION, "hello", 1, "world", std::vector<long>{1, 2, 3, 4, 5});
|
||||
@ -9,15 +9,12 @@ int main() {
|
||||
aare::logger::debug(LOCATION, "NOTHING SHOULD BE PRINTED");
|
||||
aare::logger::info(LOCATION, "info printed");
|
||||
|
||||
|
||||
// writing to file
|
||||
std::ofstream textfile;
|
||||
textfile.open("Test.txt");
|
||||
aare::logger::set_streams(textfile.rdbuf());
|
||||
aare::logger::info(LOCATION, "info printed to file");
|
||||
|
||||
|
||||
|
||||
// writing with a local logger instance
|
||||
aare::logger::Logger logger;
|
||||
logger.set_verbosity(aare::logger::WARNING);
|
||||
@ -27,7 +24,6 @@ int main() {
|
||||
aare::logger::info(LOCATION, "info printed in file ##");
|
||||
textfile.close();
|
||||
|
||||
|
||||
// setting file output by path
|
||||
// user doesn't have to close file
|
||||
aare::logger::set_output_file("Test2.txt");
|
||||
|
Reference in New Issue
Block a user