#include <util/Time.hpp>
#include <string>
#include <iostream>
#include <streambuf>
#include <fstream>
 
Go to the source code of this file.
 | 
| #define  | _FORMAT(_fmt, ...) | 
|   | 
| #define  | OUT() | 
|   | Provides an output stream for writing a log message of the log level specified by the argument. Note that this macro must be used as a statement and cannot be used as an rvalue.  
  | 
|   | 
| #define  | WARN() | 
|   | 
| #define  | NEW_FILE(NAME) | 
|   | 
| #define  | FILE(NAME) | 
|   | 
| #define  | LOG(...) | 
|   | 
| #define  | LOG_RANK(...) | 
|   | 
◆ _FORMAT
      
        
          | #define _FORMAT | 
          ( | 
            | 
          _fmt,  | 
        
        
           | 
           | 
            | 
          ...  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Value:  ([&](void) -> std::string {                                                  \
    int _sz = std::snprintf(nullptr, 0, _fmt, __VA_ARGS__);                    \
    std::vector<char> _out(_sz + 1);                                           \
    std::snprintf(&_out[0], _out.size(), _fmt, __VA_ARGS__);                   \
    return std::string(_out.data());                                           \
  })()
 
 
 
◆ FILE
Value:
  } else std::ofstream(NAME, std::ofstream::app)
static int getRank()
Definition Log.cxx:47
 
 
 
 
◆ LOG
Value:
std::ostream & prepare(int const rank, std::string const &sourceFileName, int const level, std::string const &category="")
Definition Log.cxx:19
 
static LogStream & getLogStream()
Definition Log.cxx:57
 
 
 
 
◆ LOG_RANK
◆ NEW_FILE
Value:
  } else std::ofstream(NAME, std::ofstream::out)
 
 
 
◆ OUT
Value:
Provides an output stream for writing a log message of the log level specified by the argument. Note that this macro must be used as a statement and cannot be used as an rvalue. 
 
 
◆ WARN
Value:
  } else std::cout << "WARNING: "