Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
log.cpp File Reference
#include "log_internal.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 "filesys.h"
#include <unistd.h>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <cstring>
+ Include dependency graph for log.cpp:

Classes

class  LevelTarget
 

Functions

thread_local LogStream dstream (none_target)
 
thread_local LogStream rawstream (none_target_raw)
 
thread_local LogStream errorstream (error_target)
 
thread_local LogStream warningstream (warning_target)
 
thread_local LogStream actionstream (action_target)
 
thread_local LogStream infostream (info_target)
 
thread_local LogStream verbosestream (verbose_target)
 
thread_local LogStream tracestream (trace_target)
 
thread_local LogStream derr_con (verbose_target)
 
thread_local LogStream dout_con (trace_target)
 

Variables

Logger g_logger
 
StreamLogOutput stdout_output (std::cout)
 
StreamLogOutput stderr_output (std::cerr)
 
LevelTarget none_target_raw (g_logger, LL_NONE, true)
 
LevelTarget none_target (g_logger, LL_NONE)
 
LevelTarget error_target (g_logger, LL_ERROR)
 
LevelTarget warning_target (g_logger, LL_WARNING)
 
LevelTarget action_target (g_logger, LL_ACTION)
 
LevelTarget info_target (g_logger, LL_INFO)
 
LevelTarget verbose_target (g_logger, LL_VERBOSE)
 
LevelTarget trace_target (g_logger, LL_TRACE)
 

Function Documentation

◆ actionstream()

thread_local LogStream actionstream ( action_target )

◆ derr_con()

thread_local LogStream derr_con ( verbose_target )

◆ dout_con()

thread_local LogStream dout_con ( trace_target )

◆ dstream()

thread_local LogStream dstream ( none_target )

◆ errorstream()

thread_local LogStream errorstream ( error_target )

◆ infostream()

thread_local LogStream infostream ( info_target )

◆ rawstream()

thread_local LogStream rawstream ( none_target_raw )

◆ tracestream()

thread_local LogStream tracestream ( trace_target )

◆ verbosestream()

thread_local LogStream verbosestream ( verbose_target )

◆ warningstream()

thread_local LogStream warningstream ( warning_target )

Variable Documentation

◆ action_target

LevelTarget action_target(g_logger, LL_ACTION) ( g_logger ,
LL_ACTION  )

◆ error_target

LevelTarget error_target(g_logger, LL_ERROR) ( g_logger ,
LL_ERROR  )

◆ g_logger

◆ info_target

LevelTarget info_target(g_logger, LL_INFO) ( g_logger ,
LL_INFO  )

◆ none_target

LevelTarget none_target(g_logger, LL_NONE) ( g_logger ,
LL_NONE  )

◆ none_target_raw

LevelTarget none_target_raw(g_logger, LL_NONE, true) ( g_logger ,
LL_NONE ,
true  )

◆ 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 )

◆ trace_target

LevelTarget trace_target(g_logger, LL_TRACE) ( g_logger ,
LL_TRACE  )

◆ verbose_target

◆ warning_target