~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/logging.h

  • Committer: Monty Taylor
  • Date: 2010-12-02 22:51:54 UTC
  • mto: (1975.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1976.
  • Revision ID: mordred@inaugust.com-20101202225154-h54ifmga9x6cckgs
Refactored syslog module and changed it to use sys_var directly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef PLUGIN_SYSLOG_LOGGING_H
22
22
#define PLUGIN_SYSLOG_LOGGING_H
23
23
 
24
 
#include "module.h"
25
24
#include <drizzled/plugin/logging.h>
26
25
 
27
 
class Logging_syslog: public drizzled::plugin::Logging
28
 
{
29
 
 private:
30
 
  int syslog_facility;
31
 
  int syslog_priority;
32
 
 
33
 
  Logging_syslog(const Logging_syslog&);
34
 
  Logging_syslog& operator=(const Logging_syslog&);
35
 
 
36
 
 public:
37
 
  Logging_syslog();
 
26
namespace drizzle_plugin
 
27
{
 
28
namespace logging
 
29
{
 
30
 
 
31
class Syslog: public drizzled::plugin::Logging
 
32
{
 
33
private:
 
34
  int _facility;
 
35
  int _priority;
 
36
  uint64_t _threshold_slow;
 
37
  uint64_t _threshold_big_resultset;
 
38
  uint64_t _threshold_big_examined;
 
39
 
 
40
  Syslog();
 
41
  Syslog(const Syslog&);
 
42
  Syslog& operator=(const Syslog&);
 
43
 
 
44
public:
 
45
  Syslog(const std::string &facility,
 
46
         const std::string &priority,
 
47
         uint64_t threshold_slow,
 
48
         uint64_t threshold_big_resultset,
 
49
         uint64_t threshold_big_examined);
38
50
 
39
51
  virtual bool post (drizzled::Session *session);
40
52
};
41
53
 
 
54
} /* namespace logging */
 
55
} /* namespace drizzle_plugin */
 
56
 
42
57
#endif /* PLUGIN_SYSLOG_LOGGING_H */