Luanti 5.16.0-dev
Loading...
Searching...
No Matches
log_internal.h File Reference
#include <atomic>
#include <map>
#include <vector>
#include <string_view>
#include <fstream>
#include <thread>
#include <mutex>
#include "threading/mutex_auto_lock.h"
#include "util/basic_macros.h"
#include "irrlichttypes.h"
Include dependency graph for log_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Logger
class  ILogOutput
class  ICombinedLogOutput
class  StreamLogOutput
class  FileLogOutput
struct  LogEntry
class  CaptureLogOutput

Macros

#define LOGLEVEL_TO_MASKLEVEL(x)

Typedefs

typedef u8 LogLevelMask

Enumerations

enum  LogLevel {
  LL_NONE , LL_ERROR , LL_WARNING , LL_ACTION ,
  LL_INFO , LL_VERBOSE , LL_TRACE , LL_MAX
}
enum  LogColor : u8 { LOG_COLOR_NEVER , LOG_COLOR_ALWAYS , LOG_COLOR_AUTO }
enum  LogTimestamp : u8 { LOG_TIMESTAMP_NONE , LOG_TIMESTAMP_WALL , LOG_TIMESTAMP_RELATIVE }

Variables

StreamLogOutput stdout_output
StreamLogOutput stderr_output
Logger g_logger

Macro Definition Documentation

◆ LOGLEVEL_TO_MASKLEVEL

#define LOGLEVEL_TO_MASKLEVEL ( x)
Value:
(1 << x)
constexpr v3f x
Definition test_irr_matrix4.cpp:18

Referenced by Logger::addOutput(), Logger::addOutputMasked(), and Logger::removeOutput().

Typedef Documentation

◆ LogLevelMask

typedef u8 LogLevelMask

Enumeration Type Documentation

◆ LogColor

enum LogColor : u8
Enumerator
LOG_COLOR_NEVER 
LOG_COLOR_ALWAYS 
LOG_COLOR_AUTO 

◆ LogLevel

enum LogLevel
Enumerator
LL_NONE 
LL_ERROR 
LL_WARNING 
LL_ACTION 
LL_INFO 
LL_VERBOSE 
LL_TRACE 
LL_MAX 

◆ LogTimestamp

enum LogTimestamp : u8
Enumerator
LOG_TIMESTAMP_NONE 
LOG_TIMESTAMP_WALL 
LOG_TIMESTAMP_RELATIVE 

Variable Documentation

◆ g_logger

◆ stderr_output

StreamLogOutput stderr_output
extern

◆ stdout_output

StreamLogOutput stdout_output
extern