From 05ba1743d7dc755ca6459a513117a6b4854b8c72 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Thu, 16 Jan 2025 20:40:01 +0100 Subject: [PATCH] Adding 'Logger#set_verbosity' alias as it is difficult to implement class property setters in Python --- src/gsi/gsi/gsiDeclTl.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gsi/gsi/gsiDeclTl.cc b/src/gsi/gsi/gsiDeclTl.cc index 8cf753cf4..e3a05295b 100644 --- a/src/gsi/gsi/gsiDeclTl.cc +++ b/src/gsi/gsi/gsiDeclTl.cc @@ -105,11 +105,14 @@ Class decl_Logger ("tl", "Logger", "Level 0 is silent, levels 10, 20, 30 etc. denote levels with increasing verbosity. " "11, 21, 31 .. are sublevels which also enable timing logs in addition to messages." ) + - gsi::method ("verbosity=", &Logger::set_verbosity, gsi::arg ("v"), + gsi::method ("verbosity=|set_verbosity", &Logger::set_verbosity, gsi::arg ("v"), "@brief Sets the verbosity level for the application\n" "\n" "See \\verbosity for a definition of the verbosity levels. Please note that this method " "changes the verbosity level for the whole application.\n" + "\n" + "The 'set_verbosity' alias has been introduced in version 0.29.11 as class attributes " + "are not always available in Python." ), "@brief A logger\n" "\n"