00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #pragma once
00023
00024 #include <drizzled/plugin/plugin.h>
00025 #include <drizzled/visibility.h>
00026
00027 namespace drizzled {
00028 namespace plugin {
00029
00030 class DRIZZLED_API Logging : public Plugin
00031 {
00032 public:
00033 explicit Logging(std::string name_arg)
00034 : Plugin(name_arg, "Logging")
00035 {}
00036
00041 virtual bool pre(Session *) {return false;}
00042 virtual bool post(Session *) {return false;}
00043 virtual bool postEnd(Session*) {return false;}
00044 virtual bool resetGlobalScoreboard() {return false;}
00045
00046 static bool addPlugin(Logging *handler);
00047 static void removePlugin(Logging *handler);
00048 static bool preDo(Session *session);
00049 static bool postDo(Session *session);
00050 static bool postEndDo(Session *session);
00051 static bool resetStats(Session *session);
00052 };
00053
00054 }
00055 }
00056