mmsg

mmsg is designed to provide a more controlled way of printing messages than the simple puts command of tcl.It has facilities for formatting standard warning and error messages as well as an ability to turn on or off messages from particular namespaces.

Basic Commands

The following commands represent the standard interface for the mmsg package. For consistency one should use these instead of a bare puts to standard out. mbtools makes extensive use of these commands.

Control commands

mmsg does several checks before it decides to print a message. For any given message type it checks if that message type is allowed. It also checks to see if the namespace given as an argument is in the allowable namespaces list. The default behaviour is to print from the main mbtools namespaces and the global namespace ie;
 
      { :: ::mbtools::system_generation ::mbtools::utils ::mbtools::analysis }
  
Note that children of these namespaces must be explicitly enabled. All message types except debug are also enabled by default. The following commands allow this default behaviour to be changed.