LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
LogCabin::Core::Debug::DebugMessage Struct Reference

When LogCabin wants to print a log message, this is the information that gets included. More...

#include <Debug.h>

List of all members.

Public Member Functions

 DebugMessage ()
 Default constructor.
 DebugMessage (const DebugMessage &other)
 Copy constructor.
 DebugMessage (DebugMessage &&other)
 Move constructor.
 ~DebugMessage ()
 Destructor.
DebugMessageoperator= (const DebugMessage &other)
 Copy assignment.
DebugMessageoperator= (DebugMessage &&other)
 Move assignment.

Public Attributes

const char * filename
 The output of __FILE__.
int linenum
 The output of __LINE__.
const char * function
 The output of __FUNCTION__.
int logLevel
 The level of importance of the message as an integer.
const char * logLevelString
 The level of importance of the message as a static string.
std::string processName
 The name of the current process (its PID or server ID).
std::string threadName
 The name of the current thread (by its function or its thread ID).
std::string message
 The contents of the message.

Detailed Description

When LogCabin wants to print a log message, this is the information that gets included.

Definition at line 81 of file Debug.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 37 of file Debug.cc.

Copy constructor.

Definition at line 49 of file Debug.cc.

Move constructor.

Definition at line 61 of file Debug.cc.

Destructor.

Definition at line 73 of file Debug.cc.


Member Function Documentation

DebugMessage & LogCabin::Core::Debug::DebugMessage::operator= ( const DebugMessage other)

Copy assignment.

Definition at line 78 of file Debug.cc.

DebugMessage & LogCabin::Core::Debug::DebugMessage::operator= ( DebugMessage &&  other)

Move assignment.

Definition at line 92 of file Debug.cc.


Member Data Documentation

The output of __FILE__.

Definition at line 96 of file Debug.h.

The output of __LINE__.

Definition at line 98 of file Debug.h.

The output of __FUNCTION__.

Definition at line 100 of file Debug.h.

The level of importance of the message as an integer.

This should have been of type LogLevel but int was exposed originally; int is used for backwards compatibility.

Definition at line 104 of file Debug.h.

The level of importance of the message as a static string.

Definition at line 106 of file Debug.h.

The name of the current process (its PID or server ID).

Definition at line 108 of file Debug.h.

The name of the current thread (by its function or its thread ID).

Definition at line 110 of file Debug.h.

The contents of the message.

Definition at line 112 of file Debug.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines