~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/logging.cc

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <config.h>
21
 
#include <drizzled/plugin/logging.h>
22
 
#include <drizzled/gettext.h>
23
 
#include <drizzled/errmsg_print.h>
 
20
#include "config.h"
 
21
#include "drizzled/plugin/logging.h"
 
22
#include "drizzled/gettext.h"
 
23
#include "drizzled/errmsg_print.h"
24
24
 
25
25
#include <vector>
26
26
#include <algorithm>
27
27
 
28
 
namespace drizzled {
 
28
class Session;
 
29
 
 
30
namespace drizzled
 
31
{
29
32
 
30
33
std::vector<plugin::Logging *> all_loggers;
31
34
 
 
35
 
32
36
bool plugin::Logging::addPlugin(plugin::Logging *handler)
33
37
{
34
38
  if (handler != NULL)
57
61
    {
58
62
      /* TRANSLATORS: The leading word "logging" is the name
59
63
         of the plugin api, and so should not be translated. */
60
 
      errmsg_printf(error::ERROR,
 
64
      errmsg_printf(ERRMSG_LVL_ERROR,
61
65
                    _("logging '%s' pre() failed"),
62
66
                    handler->getName().c_str());
63
67
      return true;
82
86
    {
83
87
      /* TRANSLATORS: The leading word "logging" is the name
84
88
         of the plugin api, and so should not be translated. */
85
 
      errmsg_printf(error::ERROR,
 
89
      errmsg_printf(ERRMSG_LVL_ERROR,
86
90
                    _("logging '%s' post() failed"),
87
91
                    handler->getName().c_str());
88
92
      return true;
106
110
    {
107
111
      /* TRANSLATORS: The leading word "logging" is the name
108
112
         of the plugin api, and so should not be translated. */
109
 
      errmsg_printf(error::ERROR,
 
113
      errmsg_printf(ERRMSG_LVL_ERROR,
110
114
                    _("logging '%s' postEnd() failed"),
111
115
                    handler->getName().c_str());
112
116
      return true;
129
133
    {
130
134
      /* TRANSLATORS: The leading word "logging" is the name
131
135
         of the plugin api, and so should not be translated. */
132
 
      errmsg_printf(error::ERROR,
 
136
      errmsg_printf(ERRMSG_LVL_ERROR,
133
137
                    _("logging '%s' resetCurrentScoreboard() failed"),
134
138
                    handler->getName().c_str());
135
139
      return true;