AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::slic::message Namespace Reference

Enumerations

enum  Level {
  Error, Warning, Info, Debug,
  Num_Levels
}
 

Functions

static std::string getLevelAsString (Level l)
 Returns the string name representation of the given level. More...
 

Variables

static const std::string MessageLevelName [Num_Levels]
 Array of strings corresponding to the Level enum. More...
 

Enumeration Type Documentation

◆ Level

Enumerator
Error 

ERROR log an error that may be recoverable.

Warning 

WARNING log a warning.

Info 

INFO log information that is useful for users & developers.

Debug 

DEBUG log information that is useful for developers.

Num_Levels 

Num_Levels.

Function Documentation

◆ getLevelAsString()

static std::string axom::slic::message::getLevelAsString ( Level  l)
inlinestatic

Returns the string name representation of the given level.

Parameters
[in]lthe level in query.
Returns
name a string corresponding to the name of the given leve.
Precondition
l >= 0 && l < Num_levels
Postcondition
name="UNKNOWN-LEVEL" (l < 0) || (l >= Num_Levels)

References Num_Levels.

Variable Documentation

◆ MessageLevelName

const std::string axom::slic::message::MessageLevelName[Num_Levels]
static
Initial value:
= {"ERROR",
"WARNING",
"INFO",
"DEBUG"}

Array of strings corresponding to the Level enum.