~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/logging.cc

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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
 
class Session;
29
 
 
30
 
namespace drizzled
31
 
{
 
28
namespace drizzled {
32
29
 
33
30
std::vector<plugin::Logging *> all_loggers;
34
31
 
35
 
 
36
32
bool plugin::Logging::addPlugin(plugin::Logging *handler)
37
33
{
38
34
  if (handler != NULL)
61
57
    {
62
58
      /* TRANSLATORS: The leading word "logging" is the name
63
59
         of the plugin api, and so should not be translated. */
64
 
      errmsg_printf(ERRMSG_LVL_ERROR,
 
60
      errmsg_printf(error::ERROR,
65
61
                    _("logging '%s' pre() failed"),
66
62
                    handler->getName().c_str());
67
63
      return true;
86
82
    {
87
83
      /* TRANSLATORS: The leading word "logging" is the name
88
84
         of the plugin api, and so should not be translated. */
89
 
      errmsg_printf(ERRMSG_LVL_ERROR,
 
85
      errmsg_printf(error::ERROR,
90
86
                    _("logging '%s' post() failed"),
91
87
                    handler->getName().c_str());
92
88
      return true;
110
106
    {
111
107
      /* TRANSLATORS: The leading word "logging" is the name
112
108
         of the plugin api, and so should not be translated. */
113
 
      errmsg_printf(ERRMSG_LVL_ERROR,
 
109
      errmsg_printf(error::ERROR,
114
110
                    _("logging '%s' postEnd() failed"),
115
111
                    handler->getName().c_str());
116
112
      return true;
133
129
    {
134
130
      /* TRANSLATORS: The leading word "logging" is the name
135
131
         of the plugin api, and so should not be translated. */
136
 
      errmsg_printf(ERRMSG_LVL_ERROR,
 
132
      errmsg_printf(error::ERROR,
137
133
                    _("logging '%s' resetCurrentScoreboard() failed"),
138
134
                    handler->getName().c_str());
139
135
      return true;