RNA Folding simulation
Classes | Namespaces | Variables
herrlog.hh File Reference

Header file logging library. More...

#include <chrono>
#include <fstream>
#include <mutex>
#include <ostream>
#include <sstream>
#include <string_view>
Include dependency graph for herrlog.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LogType
 The LogType class is used to define different types of logs using bit flags. Each log type is represented by a different bit in a std::uint8_t value. This allows multiple log types to be combined using bitwise operations. More...
 
class  Logger
 Logger implementation providing flexible logging capabilities. More...
 

Namespaces

 ascii_colors
 Set of ANSI colors, more can be found here: https://gist.github.com/JBlond/2fea43a3049b38287e5e9cefc87b2124.
 

Variables

constexpr std::string_view ascii_colors::reset_color {"\033[0m"}
 
constexpr std::string_view ascii_colors::bold_red_color {"\033[1;31m"}
 
constexpr std::string_view ascii_colors::bold_green_color {"\033[1;32m"}
 
constexpr std::string_view ascii_colors::bold_yellow_color {"\033[1;33m"}
 
constexpr std::string_view ascii_colors::bold_blue_color {"\033[1;34m"}
 
constexpr std::string_view ascii_colors::background_red_color {"\033[41m"}
 
constexpr std::string_view ascii_colors::bold_white_color {"\033[1;37m"}
 

Detailed Description

Header file logging library.

Author
Saphereye
Version
1.0
Date
2024-01-02
Note
Requires C++20 or later

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition in file herrlog.hh.