16 LOGGER( slog,
"test_yaml" );
18 int main(
int argc,
char** argv )
22 LERROR( slog,
"Please provide a YAML file to read" );
29 if( t_param_location ==
nullptr )
31 LERROR( slog,
"File did not read!" );
35 LINFO( slog,
"File read and parsed: \n" << *t_param_location );
39 bool t_did_write_file = t_output.
write_file( *t_param_location,
"test_output.yaml" );
41 if( ! t_did_write_file )
43 LERROR( slog,
"File did not write!" );
47 LINFO( slog,
"File written successfully" );
virtual bool write_file(const param &a_to_write, const std::string &a_filename, const param_node *a_options=nullptr)
Contains the logger class and macros, based on Kasper's KLogger class.
int main(int argc, char **argv)
LOGGER(mtlog,"authentication")