PLaSK library
Loading...
Searching...
No Matches
log.cpp File Reference
#include <cstdio>
#include "log.hpp"
#include <unistd.h>
Include dependency graph for log.cpp:

Go to the source code of this file.

Classes

struct  plask::StderrLogger
 

Namespaces

namespace  plask
 Patterson quadrature for complex function along specified line.
 

Macros

#define ANSI_DEFAULT   "\033[00m"
 
#define ANSI_BLACK   "\033[30m"
 
#define ANSI_RED   "\033[31m"
 
#define ANSI_GREEN   "\033[32m"
 
#define ANSI_BROWN   "\033[33m"
 
#define ANSI_BLUE   "\033[34m"
 
#define ANSI_MAGENTA   "\033[35m"
 
#define ANSI_CYAN   "\033[36m"
 
#define ANSI_WHITE   "\033[37m"
 
#define ANSI_GRAY   "\033[30;01m"
 
#define ANSI_BRIGHT_RED   "\033[31;01m"
 
#define ANSI_BRIGHT_GREEN   "\033[32;01m"
 
#define ANSI_YELLOW   "\033[33;01m"
 
#define ANSI_BRIGHT_BLUE   "\033[34;01m"
 
#define ANSI_BRIGHT_MAGENTA   "\033[35;01m"
 
#define ANSI_BRIGHT_CYAN   "\033[36;01m"
 
#define ANSI_BRIGHT_WHITE   "\033[37;01m"
 

Functions

PLASK_API std::string plask::host_name ()
 
PLASK_API void plask::createDefaultLogger ()
 Create default logger.
 

Variables

PLASK_API LogLevel plask::maxLoglevel = LOG_DEBUG
 Maximum log level.
 
PLASK_API bool plask::forcedLoglevel = false
 
PLASK_API shared_ptr< Loggerplask::default_logger
 Pointer to the logger.
 

Macro Definition Documentation

◆ ANSI_BLACK

#define ANSI_BLACK   "\033[30m"

Definition at line 117 of file log.cpp.

◆ ANSI_BLUE

#define ANSI_BLUE   "\033[34m"

Definition at line 121 of file log.cpp.

◆ ANSI_BRIGHT_BLUE

#define ANSI_BRIGHT_BLUE   "\033[34;01m"

Definition at line 129 of file log.cpp.

◆ ANSI_BRIGHT_CYAN

#define ANSI_BRIGHT_CYAN   "\033[36;01m"

Definition at line 131 of file log.cpp.

◆ ANSI_BRIGHT_GREEN

#define ANSI_BRIGHT_GREEN   "\033[32;01m"

Definition at line 127 of file log.cpp.

◆ ANSI_BRIGHT_MAGENTA

#define ANSI_BRIGHT_MAGENTA   "\033[35;01m"

Definition at line 130 of file log.cpp.

◆ ANSI_BRIGHT_RED

#define ANSI_BRIGHT_RED   "\033[31;01m"

Definition at line 126 of file log.cpp.

◆ ANSI_BRIGHT_WHITE

#define ANSI_BRIGHT_WHITE   "\033[37;01m"

Definition at line 132 of file log.cpp.

◆ ANSI_BROWN

#define ANSI_BROWN   "\033[33m"

Definition at line 120 of file log.cpp.

◆ ANSI_CYAN

#define ANSI_CYAN   "\033[36m"

Definition at line 123 of file log.cpp.

◆ ANSI_DEFAULT

#define ANSI_DEFAULT   "\033[00m"

Definition at line 116 of file log.cpp.

◆ ANSI_GRAY

#define ANSI_GRAY   "\033[30;01m"

Definition at line 125 of file log.cpp.

◆ ANSI_GREEN

#define ANSI_GREEN   "\033[32m"

Definition at line 119 of file log.cpp.

◆ ANSI_MAGENTA

#define ANSI_MAGENTA   "\033[35m"

Definition at line 122 of file log.cpp.

◆ ANSI_RED

#define ANSI_RED   "\033[31m"

Definition at line 118 of file log.cpp.

◆ ANSI_WHITE

#define ANSI_WHITE   "\033[37m"

Definition at line 124 of file log.cpp.

◆ ANSI_YELLOW

#define ANSI_YELLOW   "\033[33;01m"

Definition at line 128 of file log.cpp.