Jetpack documentation 1.0.0
Loading...
Searching...
No Matches
Logs.hpp File Reference

The Logs.hpp. More...

#include <exception>
#include <string>
#include <algorithm>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <poll.h>
#include <filesystem>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <unordered_map>
#include <functional>
#include <csignal>
#include <fstream>
#include <pwd.h>
#include <cmath>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <iomanip>
#include <iostream>
#include <unordered_set>
#include <map>
#include <thread>
#include <queue>
#include <mutex>
#include <string_view>

Go to the source code of this file.

Data Structures

class  Time
 A class that represents the time. More...
 
class  Debug
 A class for debugging. More...
 
class  Error
 A class for errors. More...
 
class  Warning
 A class for warnings. More...
 

Macros

#define RESET   "\033[0m"
 
#define BLACK   "\033[0;30m"
 
#define RED   "\033[0;31m"
 
#define GREEN   "\033[0;32m"
 
#define YELLOW   "\033[0;33m"
 
#define BLUE   "\033[0;34m"
 
#define MAGENTA   "\033[0;35m"
 
#define CYAN   "\033[0;36m"
 
#define WHITE   "\033[0;37m"
 
#define LIGHT_GREY   "\033[0;37m"
 
#define DARK_GREY   "\033[0;90m"
 
#define BOLD   "\033[1m"
 
#define ITALIC   "\033[3m"
 
#define UNDERLINE   "\033[4m"
 
#define BLINK   "\033[5m"
 
#define REVERSE   "\033[7m"
 
#define HIDDEN   "\033[8m"
 
#define UNUSED   __attribute__((unused))
 
#define DEBUG   Jetpack::Logs::Debug(__FILE__, __LINE__, __PRETTY_FUNCTION__)
 
#define DEBUG_CONCAT   Jetpack::Logs::Debug()
 
#define POINT   Jetpack::Logs::Debug::point(__FILE__, __LINE__, __PRETTY_FUNCTION__)
 
#define ERROR   Jetpack::Logs::Error(__FILE__, __LINE__, __PRETTY_FUNCTION__)
 
#define WARNING   Jetpack::Logs::Warning(__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Variables

bool debug_mode = false
 

Detailed Description

The Logs.hpp.

Author
Christophe VANDEVOIR, Guillaume LECOCQ and Nicolas TORO