KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Classes | Namespaces
logger.h File Reference
#include <string>
#include <iostream>
#include "input_output/logger_message.h"
#include "input_output/logger_output.h"
#include "includes/exception.h"
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Kratos::Logger
 Logger is in charge of writing the messages to output streams. More...
 

Namespaces

 Kratos
 REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
 

Macros

Kratos Macros
#define KRATOS_LOG_OCCURRENCES_LINE(line)   kratos_log_loop_counter##line
 
#define KRATOS_LOG_OCCURRENCES   KRATOS_LOG_OCCURRENCES_LINE(__LINE__)
 
#define KRATOS_INFO(label)   Kratos::Logger(label) << KRATOS_CODE_LOCATION << Kratos::Logger::Severity::INFO
 
#define KRATOS_INFO_IF(label, conditional)   if(conditional) Kratos::Logger(label) << KRATOS_CODE_LOCATION << Kratos::Logger::Severity::INFO
 
#define KRATOS_INFO_ONCE(label)   if(false) KRATOS_INFO(label)
 
#define KRATOS_INFO_FIRST_N(label, logger_count)   if(false) KRATOS_INFO(label)
 
#define KRATOS_INFO_ALL_RANKS(label)   KRATOS_INFO(label) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_INFO_IF_ALL_RANKS(label, conditional)   KRATOS_INFO_IF(label, conditional) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_INFO_ONCE_ALL_RANKS(label)   KRATOS_INFO_ONCE(label) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_INFO_FIRST_N_ALL_RANKS(label, logger_count)   KRATOS_INFO_FIRST_N(label, logger_count) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_WARNING(label)   Kratos::Logger(label) << KRATOS_CODE_LOCATION << Kratos::Logger::Severity::WARNING
 
#define KRATOS_WARNING_IF(label, conditional)   if(conditional) Kratos::Logger(label) << KRATOS_CODE_LOCATION << Kratos::Logger::Severity::WARNING
 
#define KRATOS_WARNING_ONCE(label)   if(false) KRATOS_WARNING(label)
 
#define KRATOS_WARNING_FIRST_N(label, logger_count)   if(false) KRATOS_WARNING(label)
 
#define KRATOS_WARNING_ALL_RANKS(label)   KRATOS_WARNING(label) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_WARNING_IF_ALL_RANKS(label, conditional)   KRATOS_WARNING_IF(label, conditional) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_WARNING_ONCE_ALL_RANKS(label)   KRATOS_WARNING_ONCE(label) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_WARNING_FIRST_N_ALL_RANKS(label, logger_count)   KRATOS_WARNING_FIRST_N(label, logger_count) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_DETAIL(label)   Kratos::Logger(label) << KRATOS_CODE_LOCATION << Kratos::Logger::Severity::DETAIL
 
#define KRATOS_DETAIL_IF(label, conditional)   if(conditional) Kratos::Logger(label) << KRATOS_CODE_LOCATION << Kratos::Logger::Severity::DETAIL
 
#define KRATOS_DETAIL_ONCE(label)   if(false) KRATOS_DETAIL(label)
 
#define KRATOS_DETAIL_FIRST_N(label, logger_count)   if(false) KRATOS_DETAIL(label)
 
#define KRATOS_DETAIL_ALL_RANKS(label)   KRATOS_DETAIL(label) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_DETAIL_IF_ALL_RANKS(label, conditional)   KRATOS_DETAIL_IF(label, conditional) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_DETAIL_ONCE_ALL_RANKS(label)   KRATOS_DETAIL_ONCE(label) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_DETAIL_FIRST_N_ALL_RANKS(label, logger_count)   KRATOS_DETAIL_FIRST_N(label, logger_count) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_TRACE(label)   if(false) KRATOS_WARNING(label)
 
#define KRATOS_TRACE_IF(label, conditional)   if(false) KRATOS_WARNING(label)
 
#define KRATOS_TRACE_ONCE(label)   if(false) KRATOS_WARNING(label)
 
#define KRATOS_TRACE_FIRST_N(label, logger_count)   if(false) KRATOS_WARNING(label)
 
#define KRATOS_TRACE_ALL_RANKS(label)   KRATOS_TRACE(label) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_TRACE_IF_ALL_RANKS(label, conditional)   KRATOS_TRACE_IF(label, conditional) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_TRACE_ONCE_ALL_RANKS(label)   KRATOS_TRACE_ONCE(label) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_TRACE_FIRST_N_ALL_RANKS(label, logger_count)   KRATOS_TRACE_FIRST_N(label, logger_count) << Kratos::Logger::DistributedFilter::FromAllRanks()
 
#define KRATOS_CHECK_POINT(label)
 

Functions

Input and output
std::istream & Kratos::operator>> (std::istream &rIStream, Logger &rThis)
 input stream function More...
 
std::ostream & Kratos::operator<< (std::ostream &rOStream, const Logger &rThis)
 output stream function More...