reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::Log::ThreadData Class Reference

#include <Log.hxx>

Public Member Functions

 ThreadData (LocalLoggerId id, Type type=Cout, Level level=Info, const char *logFileName=NULL, ExternalLogger *pExternalLogger=NULL, MessageStructure messageStructure=Unstructured, const Data &instanceName="")
 
 ~ThreadData ()
 
void set (Type type=Cout, Level level=Info, const char *logFileName=NULL, ExternalLogger *pExternalLogger=NULL, MessageStructure messageStructure=Unstructured, const Data &instanceName="")
 
LocalLoggerId id () const
 
unsigned int maxLineCount ()
 
unsigned int maxByteCount ()
 
bool keepAllLogFiles ()
 
Type type () const
 
void setKeepAllLogFiles (bool keepAllLogFiles)
 
std::ostream & Instance (unsigned int bytesToWrite)
 Return logger stream instance, creating it if needed.
 
void reset ()
 Frees logger stream.
 
void droppingPrivileges (uid_t uid, pid_t pid)
 

Public Attributes

volatile Level mLevel
 
volatile unsigned int mMaxLineCount
 
volatile unsigned int mMaxByteCount
 
ExternalLogger * mExternalLogger
 

Protected Attributes

volatile MessageStructure mMessageStructure
 
Data mInstanceName
 
volatile bool mKeepAllLogFiles
 
volatile bool mKeepAllLogFilesSet
 
const LocalLoggerId mId
 
Type mType
 
Data mLogFileName
 
std::ostream * mLogger
 
unsigned int mLineCount
 

Friends

class Guard
 

Detailed Description

Definition at line 297 of file Log.hxx.

Constructor & Destructor Documentation

◆ ThreadData()

resip::Log::ThreadData::ThreadData ( LocalLoggerId  id,
Type  type = Cout,
Level  level = Info,
const char *  logFileName = NULL,
ExternalLogger *  pExternalLogger = NULL,
MessageStructure  messageStructure = Unstructured,
const Data &  instanceName = "" 
)
inline

Definition at line 300 of file Log.hxx.

◆ ~ThreadData()

resip::Log::ThreadData::~ThreadData ( )
inline

Definition at line 323 of file Log.hxx.

Member Function Documentation

◆ droppingPrivileges()

void Log::ThreadData::droppingPrivileges ( uid_t  uid,
pid_t  pid 
)

Definition at line 1311 of file Log.cxx.

◆ id()

LocalLoggerId resip::Log::ThreadData::id ( ) const
inline

Definition at line 331 of file Log.hxx.

◆ Instance()

std::ostream & Log::ThreadData::Instance ( unsigned int  bytesToWrite)

Return logger stream instance, creating it if needed.

Definition at line 1202 of file Log.cxx.

◆ keepAllLogFiles()

bool resip::Log::ThreadData::keepAllLogFiles ( )
inline

Definition at line 334 of file Log.hxx.

◆ maxByteCount()

unsigned int resip::Log::ThreadData::maxByteCount ( )
inline

Definition at line 333 of file Log.hxx.

◆ maxLineCount()

unsigned int resip::Log::ThreadData::maxLineCount ( )
inline

Definition at line 332 of file Log.hxx.

◆ reset()

void Log::ThreadData::reset ( )

Frees logger stream.

Definition at line 1303 of file Log.cxx.

◆ set()

void Log::ThreadData::set ( Type  type = Cout,
Level  level = Info,
const char *  logFileName = NULL,
ExternalLogger *  pExternalLogger = NULL,
MessageStructure  messageStructure = Unstructured,
const Data &  instanceName = "" 
)

Definition at line 1261 of file Log.cxx.

◆ setKeepAllLogFiles()

void resip::Log::ThreadData::setKeepAllLogFiles ( bool  keepAllLogFiles)
inline

Definition at line 337 of file Log.hxx.

◆ type()

Type resip::Log::ThreadData::type ( ) const
inline

Definition at line 335 of file Log.hxx.

Friends And Related Symbol Documentation

◆ Guard

friend class Guard
friend

Definition at line 356 of file Log.hxx.

Member Data Documentation

◆ mExternalLogger

ExternalLogger* resip::Log::ThreadData::mExternalLogger

Definition at line 347 of file Log.hxx.

◆ mId

const LocalLoggerId resip::Log::ThreadData::mId
protected

Definition at line 357 of file Log.hxx.

◆ mInstanceName

Data resip::Log::ThreadData::mInstanceName
protected

Definition at line 351 of file Log.hxx.

◆ mKeepAllLogFiles

volatile bool resip::Log::ThreadData::mKeepAllLogFiles
protected

Definition at line 353 of file Log.hxx.

◆ mKeepAllLogFilesSet

volatile bool resip::Log::ThreadData::mKeepAllLogFilesSet
protected

Definition at line 354 of file Log.hxx.

◆ mLevel

volatile Level resip::Log::ThreadData::mLevel

Definition at line 344 of file Log.hxx.

◆ mLineCount

unsigned int resip::Log::ThreadData::mLineCount
protected

Definition at line 361 of file Log.hxx.

◆ mLogFileName

Data resip::Log::ThreadData::mLogFileName
protected

Definition at line 359 of file Log.hxx.

◆ mLogger

std::ostream* resip::Log::ThreadData::mLogger
protected

Definition at line 360 of file Log.hxx.

◆ mMaxByteCount

volatile unsigned int resip::Log::ThreadData::mMaxByteCount

Definition at line 346 of file Log.hxx.

◆ mMaxLineCount

volatile unsigned int resip::Log::ThreadData::mMaxLineCount

Definition at line 345 of file Log.hxx.

◆ mMessageStructure

volatile MessageStructure resip::Log::ThreadData::mMessageStructure
protected

Definition at line 350 of file Log.hxx.

◆ mType

Type resip::Log::ThreadData::mType
protected

Definition at line 358 of file Log.hxx.


The documentation for this class was generated from the following files: