diff --git a/Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp b/Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp
index 4a13e91ac8a2a8babe17261079a02cb8f87071f4..d0746e3142bc84469a5e48f921fa07b08e28a86e 100644
--- a/Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp
+++ b/Det/VPDet/src/component/legacy/VeloMotionSystemFromYaml.cpp
@@ -1,5 +1,5 @@
 /*****************************************************************************\
-* (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration           *
+* (c) Copyright 2022-2023 CERN for the benefit of the LHCb Collaboration      *
 *                                                                             *
 * This software is distributed under the terms of the GNU General Public      *
 * Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".   *
@@ -20,11 +20,15 @@
 #include <XmlTools/IXmlSvc.h>
 #include <atomic>
 #include <fmt/format.h>
+#include <fmt/ostream.h>
 #include <mutex>
 #include <string>
 #include <tuple>
 #include <yaml-cpp/yaml.h>
 
+// Allow formatting of YAML::Node through `operator<<` (https://fmt.dev/latest/api.html#std-ostream-support)
+template <> struct fmt::formatter<YAML::Node> : ostream_formatter {};
+
 namespace LHCb {
   namespace DetDesc {
     /// Algorithm to extract the Velo Motion System data from YAML conditions and