From e0720eaa78a56dafe5f5e572387b3a0cc8c88ec9 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 18 Jun 2022 10:33:27 -0400 Subject: Use the default logger for other writes to stdout/stderr When there is no context for writing output or error messages, use the default logger. --- manual/release-notes.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'manual') diff --git a/manual/release-notes.rst b/manual/release-notes.rst index 0e48c0f6..d66e4bb3 100644 --- a/manual/release-notes.rst +++ b/manual/release-notes.rst @@ -120,6 +120,11 @@ For a detailed list of changes, please see the file - See :ref:`breaking-crypto-api` for specific details, and see :ref:`weak-crypto` for a general discussion. + - QPDFObjectHandle::warnIfPossible no longer takes an optional + argument to throw an exception if there is no description. If + there is no description, it writes to the default logger's error + stream. + - CLI Enhancements - ``qpdf --list-attachments --verbose`` include some additional @@ -139,6 +144,20 @@ For a detailed list of changes, please see the file - Library Enhancements + - A new object ``QPDFLogger`` has been added. Details are in + :file:`include/qpdf/QPDFLogger.hh`. + + - ``QPDF`` and ``QPDFJob`` both use the default logger by + default but can have their loggers overridden. The + ``setOutputStreams`` method is deprecated in both classes. + + - A few things from ``QPDFObjectHandle`` that used to be + exceptions now write errors with the default logger. + + - By configuring the default logger, it is possible to capture + output and errors that slipped through the cracks with + ``setOutputStreams``. + - New methods ``insertItemAndGet``, ``appendItemAndGet``, ``eraseItemAndGet``, ``replaceKeyAndGet``, and ``removeKeyAndGet`` return the newly added or removed object. -- cgit v1.2.3-54-g00ecf