~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/logging_handler.h

Merged plugin-registration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef DRIZZLED_PLUGIN_LOGGING_H
24
24
#define DRIZZLED_PLUGIN_LOGGING_H
25
25
 
 
26
#include <string>
 
27
 
26
28
class Logging_handler
27
29
{
 
30
  std::string name;
28
31
public:
29
 
  Logging_handler() {}
 
32
  Logging_handler(std::string name_arg): name(name_arg)  {}
 
33
  Logging_handler(const char *name_arg): name(name_arg)  {}
30
34
  virtual ~Logging_handler() {}
31
35
 
 
36
  std::string getName() { return name; }
32
37
  /**
33
38
   * Make these no-op rather than pure-virtual so that it's easy for a plugin
34
39
   * to only