#include <memory>
#include <sstream>
-#include "bios.h"
-#include "opensslBIO.h"
+#include "io/bios.h"
+#include "io/opensslBIO.h"
+#include "log/logger.hpp"
std::string toHexAndChecksum( const std::string& src ) {
char checksum = 0;
std::string res = toHexAndChecksum( s );
if( log ) {
- ( *log.get() ) << "FINE: RECORD output: " << res << std::endl;
+ logger::debug( "FINE: RECORD output: ", res );
}
bio->write( res.data(), res.size() );
std::string parseCommand( RecordHeader& head, const std::string& input, std::shared_ptr<std::ostream> log ) {
if( log ) {
- ( *log.get() ) << "FINE: RECORD input: " << input << std::endl;
+ logger::debug( "FINE: RECORD input: ", input );
}
int32_t dlen = ( input.size() - 2 ) / 2;