From 1d5e2e6daf621e38429f9d497ce6dfcb12ce6918 Mon Sep 17 00:00:00 2001 From: Christian Eltzschig <me@elchris.org> Date: Tue, 5 Apr 2022 16:38:52 +0200 Subject: [PATCH] iox-#971 Adjust log strategy for hoofs Signed-off-by: Christian Eltzschig <me@elchris.org> --- doc/design/error-handling.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/design/error-handling.md b/doc/design/error-handling.md index a0fc2e8dde..a927c3f00f 100644 --- a/doc/design/error-handling.md +++ b/doc/design/error-handling.md @@ -143,7 +143,8 @@ All the methods presented (``cxx::expected``, ``Expects`` and ``Ensures`` and th ### Error handling in hoofs -Error logging is currently done by calls to ``std::cerr``. In the future those might be redirected to the logger. +Console output should be printed exclusively via the iceoryx logger with `LogDebug()`, `LogError()` etc. +Some files may still use `std::cout`/`std::cerr`/`std::clog` but this should be avoided. The error handler cannot be used in hoofs.