Creates calculations log in the form of a table.  
 More...
#include <TNL/Logger.h>
 | 
| 
std::ostream &  | stream | 
|   | Output stream where the log will be printed out. 
  | 
| 
int  | width | 
|   | Integer defining the width of the log. 
  | 
Creates calculations log in the form of a table. 
 
◆ Logger()
Basic constructor. 
- Parameters
 - 
  
    | width | Integer that defines the width of the log.  | 
    | stream | Defines output stream where the log will be printed out.  | 
  
   
 
 
◆ writeCurrentTime()
  
  
      
        
          | void TNL::Logger::writeCurrentTime  | 
          ( | 
          const char * |           label | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Inserts a line with current time into the log. 
- Parameters
 - 
  
    | label | Label to be printed to the log together with the current time.  | 
  
   
 
 
◆ writeHeader()
  
  
      
        
          | void TNL::Logger::writeHeader  | 
          ( | 
          const std::string & |           title | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Creates header in given log. 
The header usually contains title of the program.
- Parameters
 - 
  
    | title | A string containing the header title.  | 
  
   
 
 
◆ writeParameter() [1/2]
template<typename ParameterType> 
      
        
          | void TNL::Logger::writeParameter  | 
          ( | 
          const std::string & |           label,  | 
        
        
           | 
           | 
          const ParameterType & |           value,  | 
        
        
           | 
           | 
          int |           parameterLevel = 0 ) | 
        
      
 
Inserts parameter information into the log. 
- Template Parameters
 - 
  
    | ParameterType | Type of the parameter.  | 
  
   
- Parameters
 - 
  
    | label | Description/label of the line.  | 
    | value | Parameter value.  | 
    | parameterLevel | Integer defining the indent used in the log.  | 
  
   
 
 
◆ writeParameter() [2/2]
Inserts parameter information into the log. 
- Template Parameters
 - 
  
    | ParameterType | Type of the parameter.  | 
  
   
- Parameters
 - 
  
    | label | Description/label of the line.  | 
    | parameterName | Name of the parameter.  | 
    | parameters | A container with configuration parameters.  | 
    | parameterLevel | Integer defining the indent used in the log.  | 
  
   
 
 
◆ writeSystemInformation()
  
  
      
        
          | bool TNL::Logger::writeSystemInformation  | 
          ( | 
          bool |           printGPUInfo = false | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Inserts information about various system parameters into the log. 
- Parameters
 - 
  
    | printGPUInfo | When true, prints information about available GPUs.  | 
  
   
 
 
The documentation for this class was generated from the following files:
- src/TNL/Logger.h
 
- src/TNL/Logger.hpp