Print messages to the console at varying levels of verbosity.  
 More...
#include <Print.h>
|  | 
| static void | printf (int level, const char *fmt,...) | 
|  | Prints to the console at varying levels of verbosity or "Severity". 
 | 
| static void | printDateTimeString () | 
|  | Print the date and time to the console. 
 | 
| static std::string | getDateTimeString () | 
|  | Gets the date and time as a string. 
 | 
| static int | verbosityLevel () | 
|  | Gets the verbosity level. Lower numbers are higher priority. 
 | 
| static void | verbosityLevel (int x) | 
|  | Sets the verbosity level. Lower numbers are higher priority. 
 | 
| static bool | ifPrinted (int x) | 
|  | True if a call to Print::printf(x, ...) would print to stdout. 
 | 
Print messages to the console at varying levels of verbosity. 
◆ getDateTimeString()
  
  | 
        
          | std::string lm::Print::getDateTimeString | ( |  | ) |  |  | static | 
 
Gets the date and time as a string. 
- Returns
- Date and time as a string 
 
 
◆ ifPrinted()
  
  | 
        
          | bool lm::Print::ifPrinted | ( | int | x | ) |  |  | inlinestatic | 
 
True if a call to Print::printf(x, ...) would print to stdout. 
- Parameters
- 
  
  
- Returns
- Predicate 
 
 
◆ printDateTimeString()
  
  | 
        
          | void lm::Print::printDateTimeString | ( |  | ) |  |  | static | 
 
Print the date and time to the console. 
 
 
◆ printf()
  
  | 
        
          | void lm::Print::printf | ( | int | level, |  
          |  |  | const char * | fmt, |  
          |  |  |  | ... ) |  | static | 
 
Prints to the console at varying levels of verbosity or "Severity". 
- Parameters
- 
  
    | level | The level of "Severity" as indicated above |  | fmt | A printf style format string |  | Arguments | to the printf format string |  
 
 
 
◆ verbosityLevel() [1/2]
  
  | 
        
          | int lm::Print::verbosityLevel | ( |  | ) |  |  | inlinestatic | 
 
Gets the verbosity level. Lower numbers are higher priority. 
- Returns
- Verbosity level 
 
 
◆ verbosityLevel() [2/2]
  
  | 
        
          | void lm::Print::verbosityLevel | ( | int | x | ) |  |  | inlinestatic | 
 
Sets the verbosity level. Lower numbers are higher priority. 
- Parameters
- 
  
  
 
 
◆ DEBUG
  
  | 
        
          | const int lm::Print::DEBUG = 9 |  | static | 
 
 
◆ ERROR
  
  | 
        
          | const int lm::Print::ERROR = 2 |  | static | 
 
 
◆ FATAL
  
  | 
        
          | const int lm::Print::FATAL = 1 |  | static | 
 
 
◆ INFO
  
  | 
        
          | const int lm::Print::INFO = 4 |  | static | 
 
 
◆ VERBOSE_DEBUG
  
  | 
        
          | const int lm::Print::VERBOSE_DEBUG = 10 |  | static | 
 
 
◆ WARNING
  
  | 
        
          | const int lm::Print::WARNING = 3 |  | static | 
 
 
The documentation for this class was generated from the following files:
- /data2/LM_zls_github/Lattice-Microbes/src/core/Print.h
- /data2/LM_zls_github/Lattice-Microbes/src/core/Print.cpp