20#ifndef OPM_LOG_UTIL_HPP
21#define OPM_LOG_UTIL_HPP
31 namespace MessageType {
32 const int64_t Debug = 1;
33 const int64_t Note = 2;
34 const int64_t Info = 4;
35 const int64_t Warning = 8;
36 const int64_t Error = 16;
37 const int64_t Problem = 32;
38 const int64_t Bug = 64;
41 const int64_t DefaultMessageTypes = MessageType::Debug + MessageType::Note + MessageType::Info + MessageType::Warning + MessageType::Error + MessageType::Problem + MessageType::Bug;
42 const int64_t NoDebugMessageTypes = MessageType::Info + MessageType::Note + MessageType::Warning + MessageType::Error + MessageType::Problem + MessageType::Bug;
43 const int64_t StdoutMessageTypes = MessageType::Info + MessageType::Warning + MessageType::Error + MessageType::Problem + MessageType::Bug;
47 namespace AnsiTerminalColors {
48 const std::string none =
"\033[0m";
49 const std::string red =
"\033[31m";
50 const std::string red_strong =
"\033[31;1m";
51 const std::string yellow =
"\033[33m";
52 const std::string yellow_strong =
"\033[33;1m";
53 const std::string blue =
"\033[34m";
54 const std::string blue_strong =
"\033[34;1m";
55 const std::string magenta =
"\033[35m";
56 const std::string magenta_strong =
"\033[35;1m";
57 const std::string default_color =
"\033[39m";
61 bool isPower2(int64_t x);
62 std::string fileMessage(
const KeywordLocation& location,
const std::string& msg);
63 std::string fileMessage(int64_t messageType ,
const KeywordLocation& location ,
const std::string& msg);
64 std::string prefixMessage(int64_t messageType ,
const std::string& msg);
65 std::string colorCodeMessage(int64_t messageType ,
const std::string& msg);
Definition KeywordLocation.hpp:27
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30