From 4071620361e32264c2581a77d104c12bfef62133 Mon Sep 17 00:00:00 2001
From: David Winter <david.winter@analog.com>
Date: Mon, 28 Jun 2021 09:46:48 +0200
Subject: gr: logger: Add logger_get_configured_logger()

A helper method is added to gr/lib/logger.cc to facilitate the
allocation of loggers which are automatically configured according to the
local GNURadio configuration.

Signed-off-by: David Winter <david.winter@analog.com>
---
 gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc')

diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc
index 1447b76dae..8ec43201fb 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc
@@ -13,8 +13,8 @@
 /* If manual edits are made, the following tags should be modified accordingly.    */
 /* BINDTOOL_GEN_AUTOMATIC(0)                                                       */
 /* BINDTOOL_USE_PYGCCXML(0)                                                        */
-/* BINDTOOL_HEADER_FILE(logger.h)                                        */
-/* BINDTOOL_HEADER_FILE_HASH(b071f4deb18875805b73952a7aa43389)                     */
+/* BINDTOOL_HEADER_FILE(logger.h)                                                  */
+/* BINDTOOL_HEADER_FILE_HASH(eaf28bcaeb7c34dc0fca3fdd4a9860c0)                     */
 /***********************************************************************************/
 
 #include <pybind11/complex.h>
@@ -100,6 +100,9 @@ void bind_logger(py::module& m)
           py::arg("name"),
           py::arg("alias"));
     m.def("logger_get_logger", &gr::logger_get_logger, py::arg("name"));
+    m.def("logger_get_configured_logger",
+          &gr::logger_get_configured_logger,
+          py::arg("name"));
     m.def("logger_load_config", &gr::logger_load_config, py::arg("config_filename") = "");
     m.def("gr_logger_reset_config", &gr_logger_reset_config);
     m.def("logger_set_level",
-- 
cgit v1.2.3