~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
.. _syslog_plugin:

Syslog
======

Syslog interface for query log, error messages, and functions.

.. _syslog_loading:

Loading
-------

This plugin is loaded by default, but it may need to be configured.  See
the plugin's :ref:`syslog_configuration` and
:ref:`syslog_variables`.

To stop the plugin from loading by default, start :program:`drizzled`
with::

   --plugin-remove=syslog

.. seealso:: :ref:`drizzled_plugin_options` for more information about adding and removing plugins.

.. _syslog_configuration:

Configuration
-------------

These command line options configure the plugin when :program:`drizzled`
is started.  See :ref:`command_line_options` for more information about specifying
command line options.

.. program:: drizzled

.. option:: --syslog.errmsg-enable 

   :Default: false
   :Variable: :ref:`syslog_errmsg_enable <syslog_errmsg_enable>`

   Enable logging to syslog of the error messages

.. option:: --syslog.errmsg-priority ARG

   :Default: warning
   :Variable: :ref:`syslog_errmsg_priority <syslog_errmsg_priority>`

   Syslog Priority of error messages

.. option:: --syslog.facility ARG

   :Default: local0
   :Variable: :ref:`syslog_facility <syslog_facility>`

   Syslog Facility

.. option:: --syslog.ident ARG

   :Default: drizzled
   :Variable:

   Syslog Ident

.. option:: --syslog.logging-enable 

   :Default: false
   :Variable: :ref:`syslog_logging_enable <syslog_logging_enable>`

   Enable logging to syslog of the query log

.. option:: --syslog.logging-priority ARG

   :Default: warning
   :Variable: :ref:`syslog_logging_priority <syslog_logging_priority>`

   Syslog Priority of query logging

.. option:: --syslog.logging-threshold-big-examined 

   :Default: 0
   :Variable: :ref:`syslog_logging_threshold_big_examined <syslog_logging_threshold_big_examined>`

   Threshold for logging big queries

.. option:: --syslog.logging-threshold-big-resultset 

   :Default: 0
   :Variable: :ref:`syslog_logging_threshold_big_resultset <syslog_logging_threshold_big_resultset>`

   Threshold for logging big queries

.. option:: --syslog.logging-threshold-slow 

   :Default: 0
   :Variable: :ref:`syslog_logging_threshold_slow <syslog_logging_threshold_slow>`

   Threshold for logging slow queries

.. _syslog_variables:

Variables
---------

These variables show the running configuration of the plugin.
See `variables` for more information about querying and setting variables.

.. _syslog_errmsg_enable:

* ``syslog_errmsg_enable``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--syslog.errmsg-enable`

   Enable logging to syslog of the error messages

.. _syslog_errmsg_priority:

* ``syslog_errmsg_priority``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--syslog.errmsg-priority`

   Syslog Priority of error messages

.. _syslog_facility:

* ``syslog_facility``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--syslog.facility`

   Syslog Facility

.. _syslog_logging_enable:

* ``syslog_logging_enable``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--syslog.logging-enable`

   Enable logging to syslog of the query log

.. _syslog_logging_priority:

* ``syslog_logging_priority``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--syslog.logging-priority`

   Syslog Priority of query logging

.. _syslog_logging_threshold_big_examined:

* ``syslog_logging_threshold_big_examined``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--syslog.logging-threshold-big-examined`

   Threshold for logging big queries

.. _syslog_logging_threshold_big_resultset:

* ``syslog_logging_threshold_big_resultset``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--syslog.logging-threshold-big-resultset`

   Threshold for logging big queries

.. _syslog_logging_threshold_slow:

* ``syslog_logging_threshold_slow``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--syslog.logging-threshold-slow`

   Threshold for logging slow queries

.. _syslog_examples:

Examples
--------

Sorry, there are no examples for this plugin.

.. _syslog_authors:

Authors
-------

Mark Atwood

.. _syslog_version:

Version
-------

This documentation applies to **syslog 0.3**.

To see which version of the plugin a Drizzle server is running, execute:

.. code-block:: mysql

   SELECT MODULE_VERSION FROM DATA_DICTIONARY.MODULES WHERE MODULE_NAME='syslog'

Changelog
---------

v0.3
^^^^
* First release.