drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzle_plugin::syslog::logging::Syslog Class Reference
Inheritance diagram for drizzle_plugin::syslog::logging::Syslog:
[legend]
Collaboration diagram for drizzle_plugin::syslog::logging::Syslog:
[legend]

Public Member Functions

 Syslog (const std::string &facility, drizzled::uint64_constraint threshold_slow, drizzled::uint64_constraint threshold_big_resultset, drizzled::uint64_constraint threshold_big_examined)
virtual bool post (drizzled::Session *session)
bool setFacility (std::string new_facility)
std::string & getFacility ()
Public Member Functions inherited from drizzled::plugin::Logging
 Logging (std::string name_arg)
virtual bool pre (Session *)
virtual bool postEnd (Session *)
virtual bool resetGlobalScoreboard ()
Public Member Functions inherited from drizzled::plugin::Plugin
 Plugin (const std::string &name, const std::string &type_name)
virtual void shutdownPlugin ()
virtual void prime ()
virtual void startup (drizzled::Session &)
void activate ()
void deactivate ()
bool isActive () const
const std::string & getName () const
void setModule (module::Module *module)
const std::string & getTypeName () const
virtual bool removeLast () const
const std::string & getModuleName () const

Public Attributes

drizzled::uint64_constraint _threshold_slow
drizzled::uint64_constraint _threshold_big_resultset
drizzled::uint64_constraint _threshold_big_examined

Private Attributes

int _facility
std::string sysvar_facility

Additional Inherited Members

Public Types inherited from drizzled::plugin::Plugin
typedef std::pair< const std::string, const std::string > map_key
typedef std::unique_ptr< plugin::Plugin, deleter_fn > owned_ptr
typedef std::map< const map_key, owned_ptr > map
typedef std::vector< Plugin * > vector
Static Public Member Functions inherited from drizzled::plugin::Logging
static bool addPlugin (Logging &handler)
static void removePlugin (Logging &handler)
static bool preDo (Session *session)
static bool postDo (Session *session)
static bool postEndDo (Session *session)
static bool resetStats (Session *session)

Detailed Description

Definition at line 29 of file plugin/syslog/logging.h.

Constructor & Destructor Documentation

◆ Syslog()

drizzle_plugin::syslog::logging::Syslog::Syslog ( const std::string & facility,
drizzled::uint64_constraint threshold_slow,
drizzled::uint64_constraint threshold_big_resultset,
drizzled::uint64_constraint threshold_big_examined )

Definition at line 47 of file plugin/syslog/logging.cc.

Member Function Documentation

◆ getFacility()

std::string & drizzle_plugin::syslog::logging::Syslog::getFacility ( )

Definition at line 145 of file plugin/syslog/logging.cc.

◆ post()

bool drizzle_plugin::syslog::logging::Syslog::post ( drizzled::Session * session)
virtual

Reimplemented from drizzled::plugin::Logging.

Definition at line 69 of file plugin/syslog/logging.cc.

◆ setFacility()

bool drizzle_plugin::syslog::logging::Syslog::setFacility ( std::string new_facility)

Definition at line 133 of file plugin/syslog/logging.cc.

Member Data Documentation

◆ _facility

int drizzle_plugin::syslog::logging::Syslog::_facility
private

Definition at line 32 of file plugin/syslog/logging.h.

◆ _threshold_big_examined

drizzled::uint64_constraint drizzle_plugin::syslog::logging::Syslog::_threshold_big_examined

Definition at line 47 of file plugin/syslog/logging.h.

◆ _threshold_big_resultset

drizzled::uint64_constraint drizzle_plugin::syslog::logging::Syslog::_threshold_big_resultset

Definition at line 46 of file plugin/syslog/logging.h.

◆ _threshold_slow

drizzled::uint64_constraint drizzle_plugin::syslog::logging::Syslog::_threshold_slow

Definition at line 45 of file plugin/syslog/logging.h.

◆ sysvar_facility

std::string drizzle_plugin::syslog::logging::Syslog::sysvar_facility
private

Definition at line 33 of file plugin/syslog/logging.h.


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