~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/logging.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
5
5
 *  Copyright (C) 2010 Mark Atwood
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
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 */