sptk2 logo
SPTK Home Page
Public Types | Public Member Functions | List of all members
sptk::LogDetails Class Reference

#include <TCPServer.h>

Public Types

enum class  MessageDetail : uint8_t {
  SERIAL_ID , SOURCE_IP , REQUEST_NAME , REQUEST_DURATION ,
  REQUEST_DATA , RESPONSE_DATA , THREAD_POOLING , MAX_MESSAGE_DETAIL
}
 
using MessageDetails = std::set< MessageDetail >
 

Public Member Functions

 LogDetails ()=default
 
 LogDetails (const MessageDetails &details)
 
 LogDetails (const Strings &details)
 
 LogDetails (std::initializer_list< MessageDetail > details)
 
String toString (const String &delimiter=",") const
 
bool has (MessageDetail detail) const
 
bool empty () const
 

Detailed Description

Log details

Defines information about server activities that should be logged.

Member Enumeration Documentation

◆ MessageDetail

enum class sptk::LogDetails::MessageDetail : uint8_t
strong

Log details constants

Constructor & Destructor Documentation

◆ LogDetails() [1/4]

sptk::LogDetails::LogDetails ( )
default

Default constructor

◆ LogDetails() [2/4]

sptk::LogDetails::LogDetails ( const MessageDetails &  details)
inlineexplicit

Constructor

Parameters
detailsLog details

◆ LogDetails() [3/4]

sptk::LogDetails::LogDetails ( const Strings details)
explicit

Constructor

Parameters
detailsLog details as lower case strings

◆ LogDetails() [4/4]

sptk::LogDetails::LogDetails ( std::initializer_list< MessageDetail details)
inlineexplicit

Constructor

Parameters
detailsLog details

Member Function Documentation

◆ has()

bool sptk::LogDetails::has ( MessageDetail  detail) const
inline

Query log details

Parameters
detailLog detail
Returns
true if log detail is set

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

Fri Oct 14 2022 09:58:43: SPTK 5.4.1