From 8130d50e3b5aa0235a133c3c5a3018ac01afb5e1 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 18 Jun 2022 13:38:36 -0400 Subject: Add C API to QPDFLogger --- libtests/logger.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libtests/logger.cc') diff --git a/libtests/logger.cc b/libtests/logger.cc index f10319f6..b968422e 100644 --- a/libtests/logger.cc +++ b/libtests/logger.cc @@ -22,7 +22,7 @@ test1() *(logger->getInfo()) << "getSave exception: " << e.what() << "\n"; } try { - logger->saveToStandardOutput(); + logger->saveToStandardOutput(true); assert(false); } catch (std::logic_error& e) { *(logger->getInfo()) @@ -40,12 +40,12 @@ test2() // First call saveToStandardOutput. Then use info, which then to // go stderr. QPDFLogger l; - l.saveToStandardOutput(); + l.saveToStandardOutput(true); l.info(std::string("info to stderr\n")); *(l.getSave()) << "save to stdout\n"; l.setInfo(nullptr); l.info("info still to stderr\n"); - l.setSave(nullptr); + l.setSave(nullptr, false); l.setInfo(nullptr); l.info("info back to stdout\n"); } -- cgit v1.2.3-70-g09d2