~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/logging.h

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2010-10-20 20:41:00 UTC
  • mfrom: (1863 staging)
  • mto: This revision was merged to the branch mainline in revision 1871.
  • Revision ID: barry.leslie@primebase.com-20101020204100-oyj6p5cfssjw3p62
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *  Definitions required for Query Logging plugin
5
5
 *
6
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
6
 *  Copyright (C) 2008 Sun Microsystems
7
7
 *
8
8
 *  This program is free software; you can redistribute it and/or modify
9
9
 *  it under the terms of the GNU General Public License as published by
22
22
#ifndef DRIZZLED_PLUGIN_LOGGING_H
23
23
#define DRIZZLED_PLUGIN_LOGGING_H
24
24
 
25
 
#include <drizzled/plugin/plugin.h>
 
25
#include "drizzled/plugin/plugin.h"
26
26
 
27
27
#include <string>
28
28
 
29
 
#include <drizzled/visibility.h>
30
 
 
31
29
namespace drizzled
32
30
{
33
31
class Session;
35
33
namespace plugin
36
34
{
37
35
 
38
 
class DRIZZLED_API Logging : public Plugin
 
36
class Logging : public Plugin
39
37
{
40
38
  Logging();
41
39
  Logging(const Logging &);
53
51
  virtual bool pre(Session *) {return false;}
54
52
  virtual bool post(Session *) {return false;}
55
53
  virtual bool postEnd(Session*) {return false;}
56
 
  virtual bool resetGlobalScoreboard() {return false;}
57
54
 
58
55
  static bool addPlugin(Logging *handler);
59
56
  static void removePlugin(Logging *handler);
60
57
  static bool preDo(Session *session);
61
58
  static bool postDo(Session *session);
62
59
  static bool postEndDo(Session *session);
63
 
  static bool resetStats(Session *session);
64
60
};
65
61
 
66
62
} /* namespace plugin */