Minetest  5.4.0
log.cpp File Reference
#include "log.h"
#include "threading/mutex_auto_lock.h"
#include "debug.h"
#include "gettime.h"
#include "porting.h"
#include "settings.h"
#include "config.h"
#include "exceptions.h"
#include "util/numeric.h"
#include <sstream>
#include <iostream>
#include <algorithm>
#include <cerrno>
#include <cstring>
+ Include dependency graph for log.cpp:

Classes

class  StringBuffer
 
class  LogBuffer
 
class  RawLogBuffer
 

Functions

std::ostream null_stream (NULL)
 

Variables

const int BUFFER_LENGTH = 256
 
Logger g_logger
 
StreamLogOutput stdout_output (std::cout)
 
StreamLogOutput stderr_output (std::cerr)
 
RawLogBuffer raw_buf
 
LogBuffer none_buf (g_logger, LL_NONE)
 
LogBuffer error_buf (g_logger, LL_ERROR)
 
LogBuffer warning_buf (g_logger, LL_WARNING)
 
LogBuffer action_buf (g_logger, LL_ACTION)
 
LogBuffer info_buf (g_logger, LL_INFO)
 
LogBuffer verbose_buf (g_logger, LL_VERBOSE)
 
std::ostream * dout_con_ptr = &null_stream
 
std::ostream * derr_con_ptr = &verbosestream
 

Function Documentation

◆ null_stream()

std::ostream null_stream ( NULL  )

Variable Documentation

◆ action_buf

std::ostream actionstream & action_buf ( g_logger  ,
LL_ACTION   
)

◆ BUFFER_LENGTH

const int BUFFER_LENGTH = 256

Referenced by StringBuffer::push_back().

◆ derr_con_ptr

std::ostream* derr_con_ptr = &verbosestream

◆ dout_con_ptr

std::ostream* dout_con_ptr = &null_stream

Referenced by setup_log_params().

◆ error_buf

std::ostream errorstream & error_buf ( g_logger  ,
LL_ERROR   
)

◆ g_logger

◆ info_buf

std::ostream infostream & info_buf ( g_logger  ,
LL_INFO   
)

◆ none_buf

std::ostream dstream & none_buf ( g_logger  ,
LL_NONE   
)

◆ raw_buf

std::ostream rawstream & raw_buf

◆ stderr_output

StreamLogOutput stderr_output(std::cerr) ( std::cerr  )

Referenced by main(), and setup_log_params().

◆ stdout_output

StreamLogOutput stdout_output(std::cout) ( std::cout  )

◆ verbose_buf

std::ostream verbosestream & verbose_buf ( g_logger  ,
LL_VERBOSE   
)

◆ warning_buf

std::ostream warningstream & warning_buf ( g_logger  ,
LL_WARNING   
)