GEOSX
Namespaces | Macros | Functions
Logger.hpp File Reference
#include "common/GeosxConfig.hpp"
#include "LvArray/src/Macros.hpp"

Go to the source code of this file.

Namespaces

 geosx
 

Macros

#define GEOSX_LOG(...)   LVARRAY_LOG( __VA_ARGS__ )
 Log a message on screen. More...
 
#define GEOSX_LOG_VAR(...)   LVARRAY_LOG_VAR( __VA_ARGS__ )
 Log an expression and its value on screen. More...
 
#define GEOSX_LOG_RANK_0_IF(EXP, msg)
 Conditionally log a message on screen on rank 0. More...
 
#define GEOSX_LOG_RANK_0(msg)   GEOSX_LOG_RANK_0_IF( true, msg )
 Log a message on screen on rank 0. More...
 
#define GEOSX_LOG_RANK_IF(EXP, msg)
 Conditionally log a message to the rank output stream. More...
 
#define GEOSX_LOG_RANK(msg)   GEOSX_LOG_RANK_IF( true, msg )
 Log a message to the rank output stream. More...
 
#define GEOSX_LOG_RANK_VAR(var)   GEOSX_LOG_RANK( #var " = " << var )
 Log a variable/expression name and value on screen to the rank output stream. More...
 
#define GEOSX_ERROR_IF(EXP, msg)   LVARRAY_ERROR_IF( EXP, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Conditionally raise a hard error and terminate the program. More...
 
#define GEOSX_ERROR(msg)   GEOSX_ERROR_IF( true, msg )
 Raise a hard error and terminate the program. More...
 
#define GEOSX_ASSERT_MSG(EXP, msg)   LVARRAY_ASSERT_MSG( EXP, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Assert a condition in debug builds. More...
 
#define GEOSX_ASSERT(EXP)   GEOSX_ASSERT_MSG( EXP, "" )
 Assert a condition in debug builds. More...
 
#define GEOSX_WARNING_IF(EXP, msg)   LVARRAY_WARNING_IF( EXP, msg )
 Conditionally report a warning. More...
 
#define GEOSX_WARNING(msg)   LVARRAY_WARNING( msg )
 Report a warning. More...
 
#define GEOSX_INFO_IF(EXP, msg)   LVARRAY_INFO_IF( EXP, msg )
 Conditionally log an info message. More...
 
#define GEOSX_INFO(msg)   LVARRAY_INFO( msg )
 Log an info message. More...
 
#define GEOSX_ERROR_IF_EQ_MSG(lhs, rhs, msg)   LVARRAY_ERROR_IF_EQ_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Raise a hard error if two values are equal. More...
 
#define GEOSX_ERROR_IF_EQ(lhs, rhs)   GEOSX_ERROR_IF_EQ_MSG( lhs, rhs, "" )
 Raise a hard error if two values are equal. More...
 
#define GEOSX_ERROR_IF_NE_MSG(lhs, rhs, msg)   LVARRAY_ERROR_IF_NE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Raise a hard error if two values are not equal. More...
 
#define GEOSX_ERROR_IF_NE(lhs, rhs)   GEOSX_ERROR_IF_NE_MSG( lhs, rhs, "" )
 Raise a hard error if two values are not equal. More...
 
#define GEOSX_ERROR_IF_GT_MSG(lhs, rhs, msg)   LVARRAY_ERROR_IF_GT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Raise a hard error if one value compares greater than the other. More...
 
#define GEOSX_ERROR_IF_GT(lhs, rhs)   GEOSX_ERROR_IF_GT_MSG( lhs, rhs, "" )
 Raise a hard error if one value compares greater than the other. More...
 
#define GEOSX_ERROR_IF_GE_MSG(lhs, rhs, msg)   LVARRAY_ERROR_IF_GE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Raise a hard error if one value compares greater than or equal to the other. More...
 
#define GEOSX_ERROR_IF_GE(lhs, rhs)   GEOSX_ERROR_IF_GE_MSG( lhs, rhs, "" )
 Raise a hard error if one value compares greater than or equal to the other. More...
 
#define GEOSX_ERROR_IF_LT_MSG(lhs, rhs, msg)   LVARRAY_ERROR_IF_LT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Raise a hard error if one value compares less than the other. More...
 
#define GEOSX_ERROR_IF_LT(lhs, rhs)   GEOSX_ERROR_IF_LT_MSG( lhs, rhs, "" )
 Raise a hard error if one value compares less than the other. More...
 
#define GEOSX_ERROR_IF_LE_MSG(lhs, rhs, msg)   LVARRAY_ERROR_IF_LE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Raise a hard error if one value compares less than or equal to the other. More...
 
#define GEOSX_ERROR_IF_LE(lhs, rhs)   GEOSX_ERROR_IF_LE_MSG( lhs, rhs, "" )
 Raise a hard error if one value compares less than or equal to the other. More...
 
#define GEOSX_ASSERT_EQ_MSG(lhs, rhs, msg)   LVARRAY_ASSERT_EQ_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Assert that two values compare equal in debug builds. More...
 
#define GEOSX_ASSERT_EQ(lhs, rhs)   GEOSX_ASSERT_EQ_MSG( lhs, rhs, "" )
 Assert that two values compare equal in debug builds. More...
 
#define GEOSX_ASSERT_NE_MSG(lhs, rhs, msg)   LVARRAY_ASSERT_NE_MSG( lhs, rhs, msg )
 Assert that two values compare not equal in debug builds. More...
 
#define GEOSX_ASSERT_NE(lhs, rhs)   LVARRAY_ASSERT_NE( lhs, rhs )
 Assert that two values compare not equal in debug builds. More...
 
#define GEOSX_ASSERT_GT_MSG(lhs, rhs, msg)   LVARRAY_ASSERT_GT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Assert that one value compares greater than the other in debug builds. More...
 
#define GEOSX_ASSERT_GT(lhs, rhs)   GEOSX_ASSERT_GT_MSG( lhs, rhs, "" )
 Assert that one value compares greater than the other in debug builds. More...
 
#define GEOSX_ASSERT_GE_MSG(lhs, rhs, msg)   LVARRAY_ASSERT_GE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )
 Assert that one value compares greater than or equal to the other in debug builds. More...
 
#define GEOSX_ASSERT_GE(lhs, rhs)   GEOSX_ASSERT_GE_MSG( lhs, rhs, "" )
 Assert that one value compares greater than or equal to the other in debug builds. More...
 
#define GEOSX_LOG_LEVEL_FN(minLevel, fn)
 Macro used to turn on/off a function based on the log level. More...
 
#define GEOSX_LOG_LEVEL(minLevel, msg)   GEOSX_INFO_IF( this->getLogLevel() >= minLevel, msg );
 Output messages based on current Group's log level. More...
 
#define GEOSX_LOG_LEVEL_RANK_0(minLevel, msg)   GEOSX_LOG_RANK_0_IF( this->getLogLevel() >= minLevel, msg )
 Output messages (only on rank 0) based on current Group's log level. More...
 
#define GEOSX_LOG_LEVEL_BY_RANK(minLevel, msg)   GEOSX_LOG_RANK_IF( this->getLogLevel() >= minLevel, msg )
 Output messages (with one line per rank) based on current Group's log level. More...
 

Functions

void geosx::logger::InitializeLogger (const std::string &rank_output_dir="")
 Initialize the logger in a serial build. More...
 
void geosx::logger::FinalizeLogger ()
 Finalize the logger and close the rank streams.
 

Macro Definition Documentation

◆ GEOSX_ASSERT

#define GEOSX_ASSERT (   EXP)    GEOSX_ASSERT_MSG( EXP, "" )

Assert a condition in debug builds.

Parameters
EXPan expression that will be evaluated as a predicate

Definition at line 123 of file Logger.hpp.

◆ GEOSX_ASSERT_EQ

#define GEOSX_ASSERT_EQ (   lhs,
  rhs 
)    GEOSX_ASSERT_EQ_MSG( lhs, rhs, "" )

Assert that two values compare equal in debug builds.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 254 of file Logger.hpp.

◆ GEOSX_ASSERT_EQ_MSG

#define GEOSX_ASSERT_EQ_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ASSERT_EQ_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Assert that two values compare equal in debug builds.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 247 of file Logger.hpp.

◆ GEOSX_ASSERT_GE

#define GEOSX_ASSERT_GE (   lhs,
  rhs 
)    GEOSX_ASSERT_GE_MSG( lhs, rhs, "" )

Assert that one value compares greater than or equal to the other in debug builds.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 299 of file Logger.hpp.

◆ GEOSX_ASSERT_GE_MSG

#define GEOSX_ASSERT_GE_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ASSERT_GE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Assert that one value compares greater than or equal to the other in debug builds.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 292 of file Logger.hpp.

◆ GEOSX_ASSERT_GT

#define GEOSX_ASSERT_GT (   lhs,
  rhs 
)    GEOSX_ASSERT_GT_MSG( lhs, rhs, "" )

Assert that one value compares greater than the other in debug builds.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 284 of file Logger.hpp.

◆ GEOSX_ASSERT_GT_MSG

#define GEOSX_ASSERT_GT_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ASSERT_GT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Assert that one value compares greater than the other in debug builds.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 277 of file Logger.hpp.

◆ GEOSX_ASSERT_MSG

#define GEOSX_ASSERT_MSG (   EXP,
  msg 
)    LVARRAY_ASSERT_MSG( EXP, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Assert a condition in debug builds.

Parameters
EXPan expression that will be evaluated as a predicate
msga message to log (any expression that can be stream inserted)

Definition at line 117 of file Logger.hpp.

◆ GEOSX_ASSERT_NE

#define GEOSX_ASSERT_NE (   lhs,
  rhs 
)    LVARRAY_ASSERT_NE( lhs, rhs )

Assert that two values compare not equal in debug builds.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 269 of file Logger.hpp.

◆ GEOSX_ASSERT_NE_MSG

#define GEOSX_ASSERT_NE_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ASSERT_NE_MSG( lhs, rhs, msg )

Assert that two values compare not equal in debug builds.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 262 of file Logger.hpp.

◆ GEOSX_ERROR

#define GEOSX_ERROR (   msg)    GEOSX_ERROR_IF( true, msg )

Raise a hard error and terminate the program.

Parameters
msga message to log (any expression that can be stream inserted)

Definition at line 110 of file Logger.hpp.

◆ GEOSX_ERROR_IF

#define GEOSX_ERROR_IF (   EXP,
  msg 
)    LVARRAY_ERROR_IF( EXP, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Conditionally raise a hard error and terminate the program.

Parameters
EXPan expression that will be evaluated as a predicate
msga message to log (any expression that can be stream inserted)

Definition at line 103 of file Logger.hpp.

◆ GEOSX_ERROR_IF_EQ

#define GEOSX_ERROR_IF_EQ (   lhs,
  rhs 
)    GEOSX_ERROR_IF_EQ_MSG( lhs, rhs, "" )

Raise a hard error if two values are equal.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 164 of file Logger.hpp.

◆ GEOSX_ERROR_IF_EQ_MSG

#define GEOSX_ERROR_IF_EQ_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ERROR_IF_EQ_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Raise a hard error if two values are equal.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 157 of file Logger.hpp.

◆ GEOSX_ERROR_IF_GE

#define GEOSX_ERROR_IF_GE (   lhs,
  rhs 
)    GEOSX_ERROR_IF_GE_MSG( lhs, rhs, "" )

Raise a hard error if one value compares greater than or equal to the other.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 209 of file Logger.hpp.

◆ GEOSX_ERROR_IF_GE_MSG

#define GEOSX_ERROR_IF_GE_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ERROR_IF_GE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Raise a hard error if one value compares greater than or equal to the other.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 202 of file Logger.hpp.

◆ GEOSX_ERROR_IF_GT

#define GEOSX_ERROR_IF_GT (   lhs,
  rhs 
)    GEOSX_ERROR_IF_GT_MSG( lhs, rhs, "" )

Raise a hard error if one value compares greater than the other.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 194 of file Logger.hpp.

◆ GEOSX_ERROR_IF_GT_MSG

#define GEOSX_ERROR_IF_GT_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ERROR_IF_GT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Raise a hard error if one value compares greater than the other.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 187 of file Logger.hpp.

◆ GEOSX_ERROR_IF_LE

#define GEOSX_ERROR_IF_LE (   lhs,
  rhs 
)    GEOSX_ERROR_IF_LE_MSG( lhs, rhs, "" )

Raise a hard error if one value compares less than or equal to the other.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 239 of file Logger.hpp.

◆ GEOSX_ERROR_IF_LE_MSG

#define GEOSX_ERROR_IF_LE_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ERROR_IF_LE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Raise a hard error if one value compares less than or equal to the other.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 232 of file Logger.hpp.

◆ GEOSX_ERROR_IF_LT

#define GEOSX_ERROR_IF_LT (   lhs,
  rhs 
)    GEOSX_ERROR_IF_LT_MSG( lhs, rhs, "" )

Raise a hard error if one value compares less than the other.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 224 of file Logger.hpp.

◆ GEOSX_ERROR_IF_LT_MSG

#define GEOSX_ERROR_IF_LT_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ERROR_IF_LT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Raise a hard error if one value compares less than the other.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 217 of file Logger.hpp.

◆ GEOSX_ERROR_IF_NE

#define GEOSX_ERROR_IF_NE (   lhs,
  rhs 
)    GEOSX_ERROR_IF_NE_MSG( lhs, rhs, "" )

Raise a hard error if two values are not equal.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison

Definition at line 179 of file Logger.hpp.

◆ GEOSX_ERROR_IF_NE_MSG

#define GEOSX_ERROR_IF_NE_MSG (   lhs,
  rhs,
  msg 
)    LVARRAY_ERROR_IF_NE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg )

Raise a hard error if two values are not equal.

Parameters
lhsexpression to be evaluated and used as left-hand side in comparison
rhsexpression to be evaluated and used as right-hand side in comparison
msga message to log (any expression that can be stream inserted)

Definition at line 172 of file Logger.hpp.

◆ GEOSX_INFO

#define GEOSX_INFO (   msg)    LVARRAY_INFO( msg )

Log an info message.

Parameters
msga message to log (any expression that can be stream inserted)

Definition at line 149 of file Logger.hpp.

◆ GEOSX_INFO_IF

#define GEOSX_INFO_IF (   EXP,
  msg 
)    LVARRAY_INFO_IF( EXP, msg )

Conditionally log an info message.

Parameters
EXPan expression that will be evaluated as a predicate
msga message to log (any expression that can be stream inserted)

Definition at line 143 of file Logger.hpp.

◆ GEOSX_LOG

#define GEOSX_LOG (   ...)    LVARRAY_LOG( __VA_ARGS__ )

Log a message on screen.

The expression to log must evaluate something that can be stream inserted.

Definition at line 35 of file Logger.hpp.

◆ GEOSX_LOG_LEVEL

#define GEOSX_LOG_LEVEL (   minLevel,
  msg 
)    GEOSX_INFO_IF( this->getLogLevel() >= minLevel, msg );

Output messages based on current Group's log level.

Parameters
[in]minLevelminimum log level
[in]msga message to log (any expression that can be stream inserted)

Definition at line 319 of file Logger.hpp.

◆ GEOSX_LOG_LEVEL_BY_RANK

#define GEOSX_LOG_LEVEL_BY_RANK (   minLevel,
  msg 
)    GEOSX_LOG_RANK_IF( this->getLogLevel() >= minLevel, msg )

Output messages (with one line per rank) based on current Group's log level.

Parameters
[in]minLevelminimum log level
[in]msga message to log (any expression that can be stream inserted)

Definition at line 333 of file Logger.hpp.

◆ GEOSX_LOG_LEVEL_FN

#define GEOSX_LOG_LEVEL_FN (   minLevel,
  fn 
)
Value:
do { \
if( this->getLogLevel() >= minLevel ) \
{ \
fn; \
} \
} while( false )

Macro used to turn on/off a function based on the log level.

Parameters
[in]minLevelMinimum log level
[in]fnFunction to filter

Definition at line 306 of file Logger.hpp.

◆ GEOSX_LOG_LEVEL_RANK_0

#define GEOSX_LOG_LEVEL_RANK_0 (   minLevel,
  msg 
)    GEOSX_LOG_RANK_0_IF( this->getLogLevel() >= minLevel, msg )

Output messages (only on rank 0) based on current Group's log level.

Parameters
[in]minLevelminimum log level
[in]msga message to log (any expression that can be stream inserted)

Definition at line 326 of file Logger.hpp.

◆ GEOSX_LOG_RANK

#define GEOSX_LOG_RANK (   msg)    GEOSX_LOG_RANK_IF( true, msg )

Log a message to the rank output stream.

Parameters
msga message to log (any expression that can be stream inserted)

Definition at line 87 of file Logger.hpp.

◆ GEOSX_LOG_RANK_0

#define GEOSX_LOG_RANK_0 (   msg)    GEOSX_LOG_RANK_0_IF( true, msg )

Log a message on screen on rank 0.

Parameters
msga message to log (any expression that can be stream inserted)

Definition at line 62 of file Logger.hpp.

◆ GEOSX_LOG_RANK_0_IF

#define GEOSX_LOG_RANK_0_IF (   EXP,
  msg 
)
Value:
do { \
if( ::geosx::logger::internal::rank == 0 && EXP ) \
{ \
std::ostringstream oss; \
oss << msg; \
std::cout << oss.str() << std::endl; \
} \
} while( false )

Conditionally log a message on screen on rank 0.

Parameters
EXPan expression that will be evaluated as a predicate
msga message to log (any expression that can be stream inserted)

Definition at line 48 of file Logger.hpp.

◆ GEOSX_LOG_RANK_IF

#define GEOSX_LOG_RANK_IF (   EXP,
  msg 
)
Value:
do { \
if( EXP ) \
{ \
std::ostringstream oss; \
oss << "Rank " << ::geosx::logger::internal::rankString << ": " << msg; \
*logger::internal::rankStream << oss.str() << std::endl; \
} \
} while( false )

Conditionally log a message to the rank output stream.

Parameters
EXPan expression that will be evaluated as a predicate
msga message to log (any expression that can be stream inserted)

Definition at line 72 of file Logger.hpp.

◆ GEOSX_LOG_RANK_VAR

#define GEOSX_LOG_RANK_VAR (   var)    GEOSX_LOG_RANK( #var " = " << var )

Log a variable/expression name and value on screen to the rank output stream.

Parameters
vara variable or expression accessible from current scope that can be stream inserted

Definition at line 93 of file Logger.hpp.

◆ GEOSX_LOG_VAR

#define GEOSX_LOG_VAR (   ...)    LVARRAY_LOG_VAR( __VA_ARGS__ )

Log an expression and its value on screen.

The expression to log must evaluate something that can be stream inserted.

Definition at line 41 of file Logger.hpp.

◆ GEOSX_WARNING

#define GEOSX_WARNING (   msg)    LVARRAY_WARNING( msg )

Report a warning.

Parameters
msga message to log (any expression that can be stream inserted)

Definition at line 136 of file Logger.hpp.

◆ GEOSX_WARNING_IF

#define GEOSX_WARNING_IF (   EXP,
  msg 
)    LVARRAY_WARNING_IF( EXP, msg )

Conditionally report a warning.

Parameters
EXPan expression that will be evaluated as a predicate
msga message to log (any expression that can be stream inserted)

Definition at line 130 of file Logger.hpp.

Function Documentation

◆ InitializeLogger()

void geosx::logger::InitializeLogger ( const std::string &  rank_output_dir = "")

Initialize the logger in a serial build.

Parameters
rank_output_diroutput directory for rank log files