Monero
Loading...
Searching...
No Matches
el::base Namespace Reference

Namespace containing base/internal functionality used by Easylogging++. More...

Namespaces

namespace  consts
 Namespace containing constants used internally.
namespace  utils
 Namespace containing utility functions/static classes used internally.
namespace  threading
namespace  debug
 Contains some internal debugging tools like crash handler and stack tracer.
namespace  type
 Data types used by Easylogging++.

Classes

struct  EnsureELPP
class  NoCopy
 Internal helper class that prevent copy constructor for class. More...
class  StaticClass
 Internal helper class that makes all default constructors private. More...
class  SubsecondPrecision
 A subsecond precision class containing actual width and offset of the subsecond part. More...
class  LogFormat
 Represents log format containing flags and date format. This is used internally to start initial log. More...
class  TypedConfigurations
 Configurations with data types. More...
class  HitCounter
 Class that keeps record of current line hit for occasional logging. More...
class  RegisteredHitCounters
 Repository for hit counters used across the application. More...
class  RegisteredLoggers
 Loggers repository. More...
class  VRegistry
 Represents registries for verbose logging. More...
class  Storage
 Easylogging++ management storage. More...
class  DefaultLogDispatchCallback
class  DefaultLogBuilder
class  LogDispatcher
 Dispatches log messages. More...
class  MessageBuilder
class  NullWriter
 Writes nothing - Used when certain log is disabled. More...
class  Writer
 Main entry point of each logging. More...
class  PErrorWriter

Typedefs

typedef SubsecondPrecision MillisecondsWidth
 Type alias of SubsecondPrecision.
typedef std::shared_ptr< base::type::fstream_tFileStreamPtr
typedef std::unordered_map< std::string, FileStreamPtrLogStreamsReferenceMap

Enumerations

enum class  TimestampUnit : base::type::EnumType {
  Microsecond = 0 , Millisecond = 1 , Second = 2 , Minute = 3 ,
  Hour = 4 , Day = 5
}
 Enum to represent timestamp unit. More...
enum class  FormatFlags : base::type::EnumType {
  DateTime = 1 << 1 , LoggerId = 1 << 2 , File = 1 << 3 , Line = 1 << 4 ,
  Location = 1 << 5 , Function = 1 << 6 , User = 1 << 7 , Host = 1 << 8 ,
  LogMessage = 1 << 9 , VerboseLevel = 1 << 10 , AppName = 1 << 11 , ThreadId = 1 << 12 ,
  Level = 1 << 13 , FileBase = 1 << 14 , LevelShort = 1 << 15
}
 Format flags used to determine specifiers that are active for performance improvements. More...
enum class  DispatchAction : base::type::EnumType { None = 1 , NormalLog = 2 , SysLog = 4 , FileOnlyLog = 8 }
 Action to be taken for dispatching. More...

Functions

static int priority (Level level)
const char * convertToChar (Level level)
template<typename Transform>
static void utf8canonical (std::string &s, Transform t=[](wint_t c) ->wint_t { return c;})
void sanitize (std::string &s)
static void defaultPreRollOutCallback (const char *, std::size_t)

Variables

static struct el::base::EnsureELPP ensureELPP
ELPP_EXPORT base::type::StoragePointer elStorage

Detailed Description

Namespace containing base/internal functionality used by Easylogging++.

Typedef Documentation

◆ FileStreamPtr

◆ LogStreamsReferenceMap

typedef std::unordered_map<std::string, FileStreamPtr> el::base::LogStreamsReferenceMap

◆ MillisecondsWidth

Enumeration Type Documentation

◆ DispatchAction

Action to be taken for dispatching.

Enumerator
None 
NormalLog 
SysLog 
FileOnlyLog 

◆ FormatFlags

Format flags used to determine specifiers that are active for performance improvements.

Enumerator
DateTime 
LoggerId 
File 
Line 
Location 
Function 
User 
Host 
LogMessage 
VerboseLevel 
AppName 
ThreadId 
Level 
FileBase 
LevelShort 

◆ TimestampUnit

Enum to represent timestamp unit.

Enumerator
Microsecond 
Millisecond 
Second 
Minute 
Hour 
Day 

Function Documentation

◆ convertToChar()

const char * el::base::convertToChar ( Level level)

◆ defaultPreRollOutCallback()

void el::base::defaultPreRollOutCallback ( const char * ,
std::size_t  )
inlinestatic

◆ priority()

int el::base::priority ( Level level)
static

◆ sanitize()

void el::base::sanitize ( std::string & s)

◆ utf8canonical()

template<typename Transform>
void el::base::utf8canonical ( std::string & s,
Transform t = [](wint_t c)->wint_t { return c; } )
inlinestatic

Variable Documentation

◆ elStorage

ELPP_EXPORT base::type::StoragePointer el::base::elStorage
extern

◆ ensureELPP

struct el::base::EnsureELPP el::base::ensureELPP
static