Elasticlient
Classes | Typedefs | Enumerations | Functions
elasticlient Namespace Reference

The elasticlient namespace. More...

Classes

class  Bulk
 Class for bulk document indexing. More...
 
class  Client
 Class for managing Elasticsearch connection in one Elasticsearch cluster. More...
 
class  ConnectionException
 
class  IBulkData
 Interface for Bulk data collector classes. More...
 
class  SameIndexBulkData
 
class  Scroll
 Class for use of Elasticsearch Scroll API. More...
 
class  ScrollByScan
 Class for use of Elasticsearch Scroll API with deprecated scan option. More...
 

Typedefs

using LogCallback = void(*)(LogLevel, const std::string &)
 Definition of LogCallback.
 

Enumerations

enum  LogLevel {
  FATAL = 0, ERROR = 1, WARNING = 2, INFO = 3,
  DEBUG = 4
}
 Levels of logging.
 

Functions

void setLogFunction (LogCallback extLogFunction)
 

Detailed Description

The elasticlient namespace.

Function Documentation

◆ setLogFunction()

void elasticlient::setLogFunction ( LogCallback  extLogFunction)

Function for set custom logging callback. If logging is wanted it is recomended to set custom callback before using any of elasticlient class. Also this function should be called before forking your program in more threads. If custom LogCallback function is not set logging is disabled.