Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
SoftwareAndServices::Library::Common::Log Class Reference

Generic message logging routines. More...

#include "<SaS/Common/Log.hpp>"

+ Inheritance diagram for SoftwareAndServices::Library::Common::Log:
+ Collaboration diagram for SoftwareAndServices::Library::Common::Log:

Public Types

typedef const Tree_t< Error > * const_Tree
 A const_Tree is a (const Tree_t<T>*) More...
 
enum  Destination { DestInvalid = -1, DestSQL = 1, DestBAM = 2, DestFILE = 3 }
 
enum  LocalErrno { ACCESS_DENIED = 1045, UNKNOWN_HOST = 2005 }
 Status of error message. More...
 
typedef Tree_t< Error > * Tree
 A Tree is a (Tree_t<T>*) More...
 
typedef void(* TreeAction_fn_t) (const Tree_t< Error > **, VISIT Leaf, int Depth)
 Perform action on Tree_t<T> More...
 
typedef int(* TreeCompare_fn_t) (const Error *One, const Error *Two)
 Tree compare function. More...
 
typedef void(* TreeFree_fn_t) (Tree_t< Error > *TreeToFree)
 Free Tree_t. More...
 

Public Member Functions

 Log ()
 Log - default Constructor. More...
 
 Log (Error *er)
 Log - Constructor. More...
 
virtual ~Log ()
 Log - Destructor. More...
 
bool CommitChanges (bool logChanges=true)
 commit any changes to the destination or queued data. More...
 
virtual InstanceCount_t decInstance () const
 Decrement the instance. More...
 
Tree_t< Error > * Find (Tree_t< Error > *Rootp, const Tree_t< Error > *ToFind, TreeCompare_fn_t Cmp)
 Tree find, for locating cached messages. More...
 
int GetCharOffset () const
 
const char * GetCombinedGuid ()
 
const DateTimeGetDateTime () const
 
Destination GetDefaultDestination () const
 
const char * GetDefaultLogDatabase () const
 
const char * GetDefaultLogFileName () const
 
const char * GetDefaultLogHostName () const
 
unsigned short GetDefaultLogPort () const
 
Destination GetDestination () const
 
int GetErrno (unsigned int MsgNum, const char *DefaultMsg, const char *Locale=nullptr)
 Get the error ID in the default message database. More...
 
int GetErrno () const
 Get this objcet error number. More...
 
const char * GetGuid ()
 
virtual InstanceCount_t getInstance () const
 
int GetLineNumber () const
 
const char * GetLocale () const
 
const char * GetLogDatabase () const
 
const char * GetLogFileName () const
 
const char * GetLogHostName () const
 
unsigned short GetLogPort () const
 
const char * GetMsg (unsigned int MsgNum, const char *DefaultMsg, const char *Locale=nullptr)
 Get the message in the default message database. More...
 
const char * GetMsg (const char *Guid, unsigned int MsgNum, const char *DefaultMsg, const char *Locale=nullptr)
 Get the message in the guid message database. More...
 
const char * GetMsg () const
 
const char * GetProductGuid ()
 
virtual InstanceCount_t incInstance () const
 Increment the instance. More...
 
bool Insert (Tree_t< Error > **Rootp, const Tree_t< Error > *ToInsert, TreeCompare_fn_t Cmp)
 Insert a new node into the tree. More...
 
void operator delete (void *data)
 This class supports instance counting, so we override the delete() operator and only the final delete removes the class. More...
 
bool Remove (Tree_t< Error > **Rootp, const Tree_t< Error > *ToRemove, TreeCompare_fn_t Cmp)
 Insert a new node into the tree. More...
 
bool SendLog (bool ignoreErrors=false)
 Send any queued log data now. More...
 
bool SetDefaultDestination (Destination dest)
 
bool SetDefaultLogDatabase (const char *LogDatabase)
 
bool SetDefaultLogFileName (const char *LogFileName)
 
bool SetDefaultLogHostName (const char *LogHost)
 
bool SetDefaultLogPort (const unsigned short DestPort)
 
bool SetDestination (Destination dest)
 
void SetGuid (const char *newGuid)
 
bool SetLogDatabase (const char *LogDatabase)
 
bool SetLogFileName (const char *LogFileName)
 
bool SetLogHostName (const char *LogHost)
 
bool SetLogPort (const unsigned short DestPort)
 
void SetMsg (const char *Guid, unsigned int MsgNum, const char *Msg, const char *Locale)
 Add an new message to the database. More...
 
void SetMsg (const char *Guid, unsigned int MsgNum, const char *Msg)
 Add an new message to the database. More...
 
void SetPosition (int Line, int CharOffset=-1)
 Set the line number and column offset of the error. More...
 
void SetProductGuid (const char *Guid)
 Set the product GUID. More...
 
void Walk (const Tree_t< Error > *Root, TreeAction_fn_t Walk)
 Walk the tree, calling walk for each node found. More...
 

Static Public Member Functions

static Error ** Delete (const void *Key, Tree_t< Error > **VRootP, TreeCompare_fn_t CompareFunction)
 
static Error ** Find (const Error *Key, Tree_t< Error > *const *VRootP, TreeCompare_fn_t CompareFunction)
 
static int GetErrno (void *Guid, unsigned int MsgNum, const char *DefaultMsg, const char *Locale=nullptr)
 Get the message ID from a message number in the guid message database. More...
 
static const ErrorGetError (unsigned int MsgNum, const char *DefaultMsg, const char *Locale=nullptr)
 Get the error from a message number in the default message database. More...
 
static const ErrorGetError (const char *Guid, unsigned int MsgNum, const char *DefaultMsg, const char *Locale=nullptr)
 Get the error from a message number in the guid message database. More...
 
static void LogMessage (bool InfoOnly, const char *Fmt,...)
 Log an error message. More...
 
static Error ** Search (const Error *Key, Tree_t< Error > *const *VRootP, TreeCompare_fn_t CompareFunction)
 

Public Attributes

const void * key
 
struct node_tleft
 
unsigned int red
 
struct node_tright
 

Protected Member Functions

bool OpenLogFile ()
 Open the log file that has been configured in this object. More...
 

Protected Attributes

int _CharOffset
 For line oriented message, the character offset in the line. More...
 
const char * _CombinedGuid
 Combined GUID - calculated. More...
 
DateTime _Dt
 Our errno. More...
 
int _Errno
 The errono - our errno, not the systems. More...
 
const char * _Guid
 The current application GUID. More...
 
int _LineNumber
 For line oriented message, the line number. More...
 
const char * _Locale
 The locale for the message. More...
 
const char * _Msg
 The message - per locale tree. More...
 
const char * _ProductGuid
 The current product GUID. More...
 

Static Protected Attributes

static pthread_mutex_t GlobalMutex
 Mutual exclusion lock for access to internal implementation. More...
 
static const char * LogDatabase
 The name of the log database. More...
 
static Destination LogDestination
 Per application, all logging goes to the same place - by default. More...
 
static int LogFd
 The file descriptior for log messages. More...
 
static FileLogFile
 (File*) object where log data is sent. More...
 
static const char * LogFileName
 The name of the log file. More...
 
static const char * LogHostName
 The name of the log host. More...
 
static unsigned short LogPort
 The port number where log messages are sent. More...
 

Friends

void LogInitOnceProc ()
 Initialize globals. More...
 

Detailed Description

Generic message logging routines.

Definition at line 146 of file Log.hpp.

Member Typedef Documentation

◆ const_Tree

A const_Tree is a (const Tree_t<T>*)

Definition at line 75 of file TreeSearch.hpp.

◆ Tree

A Tree is a (Tree_t<T>*)

Definition at line 70 of file TreeSearch.hpp.

◆ TreeAction_fn_t

typedef void(* SoftwareAndServices::Library::Common::Tree_t< Error >::TreeAction_fn_t) (const Tree_t< Error > **, VISIT Leaf, int Depth)
inherited

Perform action on Tree_t<T>

Parameters
RootThe root node to work with.
Leafa VISIT value.
LevelA depth.

Definition at line 99 of file TreeSearch.hpp.

◆ TreeCompare_fn_t

typedef int(* SoftwareAndServices::Library::Common::Tree_t< Error >::TreeCompare_fn_t) (const Error *One, const Error *Two)
inherited

Tree compare function.

Parameters
OneThe first T to compare.
TwoThe second T to compare.
Returns
(-1) when One < Two. (0) When One == Two. (1) When One > Two.

Definition at line 88 of file TreeSearch.hpp.

◆ TreeFree_fn_t

typedef void(* SoftwareAndServices::Library::Common::Tree_t< Error >::TreeFree_fn_t) (Tree_t< Error > *TreeToFree)
inherited

Free Tree_t.

Parameters
TreeToFreeThe node to free.

Definition at line 108 of file TreeSearch.hpp.

Member Enumeration Documentation

◆ Destination

Enumerator
DestSQL 

Unknown destination.

DestBAM 

Log to SQL databas.

DestFILE 

Log to network.

Definition at line 178 of file Log.hpp.

◆ LocalErrno

Status of error message.

Definition at line 323 of file Error.hpp.

Constructor & Destructor Documentation

◆ Log() [1/2]

SoftwareAndServices::Library::Common::Log::Log ( )

Log - default Constructor.

◆ Log() [2/2]

SoftwareAndServices::Library::Common::Log::Log ( Error er)

Log - Constructor.

Parameters
erAn existing error to log.

◆ ~Log()

virtual SoftwareAndServices::Library::Common::Log::~Log ( )
virtual

Log - Destructor.

Member Function Documentation

◆ CommitChanges()

bool SoftwareAndServices::Library::Common::Log::CommitChanges ( bool  logChanges = true)

commit any changes to the destination or queued data.

Parameters
logChangesWhen TRUE log the changes to this configuration.
Returns
TRUE when committed.

◆ decInstance()

virtual InstanceCount_t SoftwareAndServices::Library::Common::instance< Error >::decInstance ( ) const
inlinevirtualinherited

Decrement the instance.

Returns
The instance count, after decrementing it.

Definition at line 129 of file instance.hpp.

◆ Find()

Tree_t<Error>* SoftwareAndServices::Library::Common::Error::Find ( Tree_t< Error > *  Rootp,
const Tree_t< Error > *  ToFind,
TreeCompare_fn_t  Cmp 
)
inherited

Tree find, for locating cached messages.

Parameters
RootpThe root of the tree.
ToFindThe object to find.
CmpThe compare method to call to compare toFind with each node found.
Returns
The tree object that matched, or nullptr if none.

◆ GetCharOffset()

int SoftwareAndServices::Library::Common::Error::GetCharOffset ( ) const
inherited
Returns
The column number of the error, or -1 if not known.

◆ GetCombinedGuid()

const char* SoftwareAndServices::Library::Common::Error::GetCombinedGuid ( )
inherited
Returns
The company and product guid.

◆ GetDateTime()

const DateTime* SoftwareAndServices::Library::Common::Error::GetDateTime ( ) const
inherited
Returns
The date-time the error was generated.

◆ GetDefaultDestination()

Destination SoftwareAndServices::Library::Common::Log::GetDefaultDestination ( ) const
Returns
The default destination type for the implementation.

◆ GetDefaultLogDatabase()

const char* SoftwareAndServices::Library::Common::Log::GetDefaultLogDatabase ( ) const
Returns
The default database for DestSQL.

◆ GetDefaultLogFileName()

const char* SoftwareAndServices::Library::Common::Log::GetDefaultLogFileName ( ) const
Returns
The default file name for DestFILE.

◆ GetDefaultLogHostName()

const char* SoftwareAndServices::Library::Common::Log::GetDefaultLogHostName ( ) const
Returns
The default host name for DestBAM.

◆ GetDefaultLogPort()

unsigned short SoftwareAndServices::Library::Common::Log::GetDefaultLogPort ( ) const
Returns
The default DestBAM port used.

◆ GetDestination()

Destination SoftwareAndServices::Library::Common::Log::GetDestination ( ) const
Returns
Where the log data is sent.

◆ GetErrno() [1/3]

int SoftwareAndServices::Library::Common::Error::GetErrno ( unsigned int  MsgNum,
const char *  DefaultMsg,
const char *  Locale = nullptr 
)
inherited

Get the error ID in the default message database.

Parameters
MsgNumThe error message number to get.
DefaultMsgIf the L10N database can not be opened, the use this default message.
LocaleWhat locale to use, nullptr means default.
Returns
The error code.

◆ GetErrno() [2/3]

static int SoftwareAndServices::Library::Common::Error::GetErrno ( void *  Guid,
unsigned int  MsgNum,
const char *  DefaultMsg,
const char *  Locale = nullptr 
)
staticinherited

Get the message ID from a message number in the guid message database.

Parameters
GuidThe GUID database to use.
MsgNumThe error message number to get.
DefaultMsgIf the L10N database can not be opened, the use this default message.
LocaleWhat locale to use, nullptr means default.
Returns
The error code.

◆ GetErrno() [3/3]

int SoftwareAndServices::Library::Common::Error::GetErrno ( ) const
inherited

Get this objcet error number.

Returns
The error number.

◆ GetError() [1/2]

static const Error* SoftwareAndServices::Library::Common::Error::GetError ( unsigned int  MsgNum,
const char *  DefaultMsg,
const char *  Locale = nullptr 
)
staticinherited

Get the error from a message number in the default message database.

Parameters
MsgNumThe error message number to get.
DefaultMsgIf the L10N database can not be opened, the use this default message.
LocaleWhat locale to use, nullptr means default.
Returns
A new error object, to be deleted by the caller when no longer needed.

◆ GetError() [2/2]

static const Error* SoftwareAndServices::Library::Common::Error::GetError ( const char *  Guid,
unsigned int  MsgNum,
const char *  DefaultMsg,
const char *  Locale = nullptr 
)
staticinherited

Get the error from a message number in the guid message database.

Parameters
GuidThe GUID database to use.
MsgNumThe error message number to get.
DefaultMsgIf the L10N database can not be opened, the use this default message.
LocaleWhat locale to use, nullptr means default.
Returns
A new error object, to be deleted by the caller when no longer needed.

◆ GetGuid()

const char* SoftwareAndServices::Library::Common::Error::GetGuid ( )
inherited
Returns
The GUID of the current application running.

◆ getInstance()

virtual InstanceCount_t SoftwareAndServices::Library::Common::instance< Error >::getInstance ( ) const
inlinevirtualinherited
Returns
The current instance count.

Definition at line 118 of file instance.hpp.

◆ GetLineNumber()

int SoftwareAndServices::Library::Common::Error::GetLineNumber ( ) const
inherited
Returns
The line number of the error, or -1 if not known.

◆ GetLocale()

const char* SoftwareAndServices::Library::Common::Error::GetLocale ( ) const
inherited
Returns
The current locale.

◆ GetLogDatabase()

const char* SoftwareAndServices::Library::Common::Log::GetLogDatabase ( ) const
Returns
The database name (DestSQL only).

◆ GetLogFileName()

const char* SoftwareAndServices::Library::Common::Log::GetLogFileName ( ) const
Returns
What file the log is sent to (DestFILE only).

◆ GetLogHostName()

const char* SoftwareAndServices::Library::Common::Log::GetLogHostName ( ) const
Returns
The host name where the log is sent (DestBAM only).

◆ GetLogPort()

unsigned short SoftwareAndServices::Library::Common::Log::GetLogPort ( ) const
Returns
The DestBAM port number being used.

◆ GetMsg() [1/3]

const char* SoftwareAndServices::Library::Common::Error::GetMsg ( unsigned int  MsgNum,
const char *  DefaultMsg,
const char *  Locale = nullptr 
)
inherited

Get the message in the default message database.

Parameters
MsgNumThe error message number to get.
DefaultMsgIf the L10N database can not be opened, the use this default message.
LocaleWhat locale to use, nullptr means default.
Returns
A pointer to a string message. The string is stored in StringCache

◆ GetMsg() [2/3]

const char* SoftwareAndServices::Library::Common::Error::GetMsg ( const char *  Guid,
unsigned int  MsgNum,
const char *  DefaultMsg,
const char *  Locale = nullptr 
)
inherited

Get the message in the guid message database.

Parameters
GuidThe GUID database to use.
MsgNumThe error message number to get.
DefaultMsgIf the L10N database can not be opened, the use this default message.
LocaleWhat locale to use, nullptr means default.
Returns
A pointer to a string message. The string is stored in StringCache

◆ GetMsg() [3/3]

const char* SoftwareAndServices::Library::Common::Error::GetMsg ( ) const
inherited
Returns
The error message.

◆ GetProductGuid()

const char* SoftwareAndServices::Library::Common::Error::GetProductGuid ( )
inherited
Returns
The product GUID.

◆ incInstance()

virtual InstanceCount_t SoftwareAndServices::Library::Common::instance< Error >::incInstance ( ) const
inlinevirtualinherited

Increment the instance.

Returns
The instance value, after incrementing it.

Definition at line 109 of file instance.hpp.

◆ Insert()

bool SoftwareAndServices::Library::Common::Error::Insert ( Tree_t< Error > **  Rootp,
const Tree_t< Error > *  ToInsert,
TreeCompare_fn_t  Cmp 
)
inherited

Insert a new node into the tree.

Parameters
RootpThe root of the node.
ToInsertThe object to insert.
CmpThe compare method to call to compare toFind with each node.
Returns
TRUE if inserted.

◆ LogMessage()

static void SoftwareAndServices::Library::Common::Log::LogMessage ( bool  InfoOnly,
const char *  Fmt,
  ... 
)
static

Log an error message.

Parameters
InfoOnlyWhen true, this is a status message, not an error message. An InfoOnly message is only printed when this code was compiled with -DDEBUG.
Lista sprintf() like format list, followed by the format argument values.
Note
Do NOT terminate the last line with a '
', as _LogMessage may log to non-text files.
When compiled with -DDEBUG, then _LogMessage() will also print to stderr, terminating the last line with a '
'.

◆ OpenLogFile()

bool SoftwareAndServices::Library::Common::Log::OpenLogFile ( )
protected

Open the log file that has been configured in this object.

◆ operator delete()

void SoftwareAndServices::Library::Common::Log::operator delete ( void *  data)

This class supports instance counting, so we override the delete() operator and only the final delete removes the class.

Parameters
dataThe 'this' pointer'.

◆ Remove()

bool SoftwareAndServices::Library::Common::Error::Remove ( Tree_t< Error > **  Rootp,
const Tree_t< Error > *  ToRemove,
TreeCompare_fn_t  Cmp 
)
inherited

Insert a new node into the tree.

Parameters
RootpThe root of the node.
ToRemoveThe object to remove.
CmpThe compare method to call to compare toFind with each node.
Returns
TRUE if inserted.

◆ SendLog()

bool SoftwareAndServices::Library::Common::Log::SendLog ( bool  ignoreErrors = false)

Send any queued log data now.

Parameters
ignoreErrorsWhen TRUE, ignore any reporting errors.

◆ SetDefaultDestination()

bool SoftwareAndServices::Library::Common::Log::SetDefaultDestination ( Destination  dest)
Parameters
destWhere to send the data to. Set destination value data first (hostname, or database, ...), else this function may return false (error).
Returns
TRUE if valid.

◆ SetDefaultLogDatabase()

bool SoftwareAndServices::Library::Common::Log::SetDefaultLogDatabase ( const char *  LogDatabase)
Parameters
LogDatabaseWhere to send the DestSQL data.
Returns
TRUE if a know database and connected.

◆ SetDefaultLogFileName()

bool SoftwareAndServices::Library::Common::Log::SetDefaultLogFileName ( const char *  LogFileName)
Parameters
LogFileNameWhere to send the DestFILE data.
Returns
TRUE if the file is opened for writing.

◆ SetDefaultLogHostName()

bool SoftwareAndServices::Library::Common::Log::SetDefaultLogHostName ( const char *  LogHost)
Parameters
LogHostWhere to send the DestBAM data.
Returns
TRUE if a know host and connected.

◆ SetDefaultLogPort()

bool SoftwareAndServices::Library::Common::Log::SetDefaultLogPort ( const unsigned short  DestPort)
Parameters
DestPortThe port number to use for DestBAM.
Returns
TRUE if an available port.

◆ SetDestination()

bool SoftwareAndServices::Library::Common::Log::SetDestination ( Destination  dest)
Parameters
destWhere to send the data to. Set destination value data first (hostname, or database, ...), else this function may return false (error).
Returns
TRUE if valid.

◆ SetGuid()

void SoftwareAndServices::Library::Common::Error::SetGuid ( const char *  newGuid)
inherited
Parameters
newGuidThe guid to use.

◆ SetLogDatabase()

bool SoftwareAndServices::Library::Common::Log::SetLogDatabase ( const char *  LogDatabase)
Parameters
LogDatabaseWhere to send the DestSQL data.
Returns
TRUE if a know database and connected.

◆ SetLogFileName()

bool SoftwareAndServices::Library::Common::Log::SetLogFileName ( const char *  LogFileName)
Parameters
LogFileNameWhere to send the DestFILE data.
Returns
TRUE if the file is opened for writing.

◆ SetLogHostName()

bool SoftwareAndServices::Library::Common::Log::SetLogHostName ( const char *  LogHost)
Parameters
LogHostWhere to send the DestBAM data.
Returns
TRUE if a know host and connected.

◆ SetLogPort()

bool SoftwareAndServices::Library::Common::Log::SetLogPort ( const unsigned short  DestPort)
Parameters
DestPortThe port number to use for DestBAM.
Returns
TRUE if an available port.

◆ SetMsg() [1/2]

void SoftwareAndServices::Library::Common::Error::SetMsg ( const char *  Guid,
unsigned int  MsgNum,
const char *  Msg,
const char *  Locale 
)
inherited

Add an new message to the database.

Parameters
GuidThe GUID database to use.
MsgNumThe message number to use.
MsgThe message to use.
LocaleThe locale to use.

◆ SetMsg() [2/2]

void SoftwareAndServices::Library::Common::Error::SetMsg ( const char *  Guid,
unsigned int  MsgNum,
const char *  Msg 
)
inherited

Add an new message to the database.

Parameters
GuidThe GUID database to use.
MsgNumThe message number to use.
MsgThe message to use.

◆ SetPosition()

void SoftwareAndServices::Library::Common::Error::SetPosition ( int  Line,
int  CharOffset = -1 
)
inherited

Set the line number and column offset of the error.

Parameters
LineThe line number (if -1 not known).
CharOffsetThe column offset (if -1 not known).

◆ SetProductGuid()

void SoftwareAndServices::Library::Common::Error::SetProductGuid ( const char *  Guid)
inherited

Set the product GUID.

◆ Walk()

void SoftwareAndServices::Library::Common::Error::Walk ( const Tree_t< Error > *  Root,
TreeAction_fn_t  Walk 
)
inherited

Walk the tree, calling walk for each node found.

Parameters
RootThe root of the tree.
WalkThe callback function to call when each node is found.

Friends And Related Function Documentation

◆ LogInitOnceProc

void LogInitOnceProc ( )
friend

Initialize globals.

Member Data Documentation

◆ _CharOffset

int SoftwareAndServices::Library::Common::Error::_CharOffset
protectedinherited

For line oriented message, the character offset in the line.

Definition at line 439 of file Error.hpp.

◆ _CombinedGuid

const char* SoftwareAndServices::Library::Common::Error::_CombinedGuid
mutableprotectedinherited

Combined GUID - calculated.

Definition at line 408 of file Error.hpp.

◆ _Dt

DateTime SoftwareAndServices::Library::Common::Error::_Dt
protectedinherited

Our errno.

Set to constructor creation time of this object.

Definition at line 428 of file Error.hpp.

◆ _Errno

int SoftwareAndServices::Library::Common::Error::_Errno
protectedinherited

The errono - our errno, not the systems.

Definition at line 423 of file Error.hpp.

◆ _Guid

const char* SoftwareAndServices::Library::Common::Error::_Guid
protectedinherited

The current application GUID.

Definition at line 397 of file Error.hpp.

◆ _LineNumber

int SoftwareAndServices::Library::Common::Error::_LineNumber
protectedinherited

For line oriented message, the line number.

Definition at line 433 of file Error.hpp.

◆ _Locale

const char* SoftwareAndServices::Library::Common::Error::_Locale
protectedinherited

The locale for the message.

Definition at line 418 of file Error.hpp.

◆ _Msg

const char* SoftwareAndServices::Library::Common::Error::_Msg
protectedinherited

The message - per locale tree.

Definition at line 413 of file Error.hpp.

◆ _ProductGuid

const char* SoftwareAndServices::Library::Common::Error::_ProductGuid
mutableprotectedinherited

The current product GUID.

May be nullptr.

Definition at line 403 of file Error.hpp.

◆ GlobalMutex

pthread_mutex_t SoftwareAndServices::Library::Common::Log::GlobalMutex
staticprotected

Mutual exclusion lock for access to internal implementation.

Definition at line 393 of file Log.hpp.

◆ LogDatabase

const char* SoftwareAndServices::Library::Common::Log::LogDatabase
staticprotected

The name of the log database.

Definition at line 372 of file Log.hpp.

◆ LogDestination

Destination SoftwareAndServices::Library::Common::Log::LogDestination
staticprotected

Per application, all logging goes to the same place - by default.

Definition at line 362 of file Log.hpp.

◆ LogFd

int SoftwareAndServices::Library::Common::Log::LogFd
staticprotected

The file descriptior for log messages.

Definition at line 387 of file Log.hpp.

◆ LogFile

File* SoftwareAndServices::Library::Common::Log::LogFile
staticprotected

(File*) object where log data is sent.

Definition at line 398 of file Log.hpp.

◆ LogFileName

const char* SoftwareAndServices::Library::Common::Log::LogFileName
staticprotected

The name of the log file.

Definition at line 377 of file Log.hpp.

◆ LogHostName

const char* SoftwareAndServices::Library::Common::Log::LogHostName
staticprotected

The name of the log host.

Definition at line 367 of file Log.hpp.

◆ LogPort

unsigned short SoftwareAndServices::Library::Common::Log::LogPort
staticprotected

The port number where log messages are sent.

Definition at line 382 of file Log.hpp.


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