diff --git a/src/include/logging.h b/src/include/logging.h index 58c27cc58..38d99c567 100644 --- a/src/include/logging.h +++ b/src/include/logging.h @@ -31,27 +31,28 @@ ** are free to define and use additional flags for local use. Typically, ** this header will be included via some of the basic headers like error.hpp, ** which in turn gets included e.g. by proc/common.hpp - ** + ** ** This header can thus be assumed to be effectively global. It should contain ** only declarations of global relevance, as any change causes the whole project ** to be rebuilt. All flags defined here are initialised automatically. - ** + ** ** We use the 'NOBUG_DECLARATIONS_ONLY' magic to generate declarations and ** definitions only out of this header. - ** - ** @par Logging configuration + ** + ** # Logging configuration + ** ** By default, logging is configured such as to emit a small number of informative ** messages on the starting terminal and to report fatal errors. But besides the ** usual fine-grained tracing messages, we define a small number of distinct ** thematic Logging Channels providing a consistent high-level view of ** what is going on with regards to a specific aspect of the application - ** - \c progress documents a high-level overall view of what the application \em does - ** - \c render focuses on the working of the render engine (without logging each frame) - ** - \c config shows anything of relevance regarding the configured state of App and session - ** - \c memory allows to diagnose a high-level view of memory management - ** + ** - `progress` documents a high-level overall view of what the application _does_ + ** - `render` focuses on the working of the render engine (without logging each frame) + ** - `config` shows anything of relevance regarding the configured state of App and session + ** - `memory` allows to diagnose a high-level view of memory management + ** ** Any log level can be overridden by an environment variable, for example - ** \code NOBUG_LOG='progress:INFO' ./lumiera \endcode + ** `NOBUG_LOG='progress:INFO' ./lumiera` ** ** @todo logging to files? NOBUG_LOG='progress:INFO@file(name=filename)' api to set this statically up by the program will follow --cehteh */ @@ -187,7 +188,7 @@ NOBUG_CPP_DEFINE_FLAG_PARENT ( builder_mem, proc_mem); NOBUG_CPP_DEFINE_FLAG_PARENT ( asset_mem, proc_mem); -/** event which drive the application are separately logged to reconstruct what happend/yielded to a problem */ +/** event which drive the application are separately logged to reconstruct what happened/yielded to a problem */ NOBUG_CPP_DEFINE_FLAG_PARENT ( events, all); /** caveat joel, you need to implement this */ NOBUG_CPP_DEFINE_FLAG_PARENT ( gui_event, all); diff --git a/src/lib/searchpath.cpp b/src/lib/searchpath.cpp index 2dda8d1d7..f1bd470b2 100644 --- a/src/lib/searchpath.cpp +++ b/src/lib/searchpath.cpp @@ -96,7 +96,7 @@ namespace lib { + (searchPath.empty()? ".":" in search path: "+searchPath)); } - INFO (config, "found module %s", modulePathName.string().c_str()); + TRACE (config, "found module %s", modulePathName.string().c_str()); return modulePathName.string(); ///////////TICKET #896 } diff --git a/src/proc/control/command-registry.hpp b/src/proc/control/command-registry.hpp index 13badb616..f3c51c03e 100644 --- a/src/proc/control/command-registry.hpp +++ b/src/proc/control/command-registry.hpp @@ -135,7 +135,7 @@ namespace control { ~CommandRegistry() { if (0 < index_size()) - INFO (command, "Shutting down Command system..."); + TRACE (command, "Shutting down Command system..."); //////////////////////TICKET #295 : possibly remotely trigger Command mass suicide here.... ridx_.clear(); index_.clear(); diff --git a/src/proc/control/command-setup.cpp b/src/proc/control/command-setup.cpp index 45af66222..a0eb41397 100644 --- a/src/proc/control/command-setup.cpp +++ b/src/proc/control/command-setup.cpp @@ -136,7 +136,7 @@ namespace control { Symbol& cmdID{get(entry)}; DefinitionClosure& buildDefinition{get (entry)}; - INFO (command, "defining Command(%s)...", cmdID.c()); + TRACE (command, "defining Command(%s)...", cmdID.c()); CommandDef def(cmdID); buildDefinition(def); pendingCmdDefinitions.pop_back(); diff --git a/src/proc/control/command.cpp b/src/proc/control/command.cpp index 02744b20d..deae66ec4 100644 --- a/src/proc/control/command.cpp +++ b/src/proc/control/command.cpp @@ -169,7 +169,7 @@ namespace control { if (cmdID) CommandRegistry::instance().track (cmdID, *this); - INFO (command, "%s defined OK", cStr(*this)); + TRACE (command, "%s defined OK", cStr(*this)); } diff --git a/src/proc/control/proc-dispatcher.cpp b/src/proc/control/proc-dispatcher.cpp index 65d83b18b..97c423e62 100644 --- a/src/proc/control/proc-dispatcher.cpp +++ b/src/proc/control/proc-dispatcher.cpp @@ -299,7 +299,7 @@ namespace control { INFO (command, "+++ dispatch %s", util::cStr(cmd)); //////////////////////////////////////////////////////TODO : magic to invoke commands from unit tests - if (util::startsWith (string(cmd.getID()), "test.")) + if (util::startsWith (string(cmd.getID()), "test")) { INFO (command, "+++ -------->>> bang!"); cmd();