Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
wrap.h
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Copyright (C) 2010 Mark Atwood
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#pragma once
21
22
#include <cstdarg>
23
24
#include <string>
25
26
#include <drizzled/error/priority_t.h>
27
28
namespace
drizzle_plugin
{
29
namespace
syslog {
30
31
class
WrapSyslog
32
{
33
private
:
34
bool
_check;
35
36
WrapSyslog
();
37
public
:
38
~
WrapSyslog
();
39
static
WrapSyslog
& singleton();
40
41
static
int
getFacilityByName(
const
char
*);
42
static
int
getPriorityByName(
const
char
*);
43
44
void
openlog(
const
std::string &ident);
45
void
vlog(
int
facility,
const
drizzled::error::priority_t priority,
const
char
*format, va_list ap);
46
void
log(
int
facility,
const
drizzled::error::priority_t priority,
const
char
*format, ...);
47
};
48
49
inline
WrapSyslog
& WrapSyslog::singleton()
50
{
51
static
WrapSyslog
handle;
52
return
handle;
53
}
54
55
}
/* namespace syslog */
56
}
/* namespsace drizzle_plugin */
57
drizzle_plugin
Definition:
auth_schema.cc:31
drizzle_plugin::syslog::WrapSyslog
Definition:
wrap.h:31
plugin
syslog
wrap.h
Generated by
1.8.9.1