2 * Copyright (c) 2015, 2016 Nicira, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 #include "syslog-null.h"
21 #include "syslog-provider.h"
24 static void syslog_null_open(struct syslogger
*this, int facility
);
25 static void syslog_null_log(struct syslogger
*this, int pri
, const char *msg
);
27 static struct syslog_class syslog_null_class
= {
33 struct syslogger parent
;
36 /* This function creates object that delegate all logging to null's
37 * syslog implementation. */
39 syslog_null_create(void)
41 struct syslog_null
*this = xmalloc(sizeof *this);
43 this->parent
.class = &syslog_null_class
;
44 this->parent
.prefix
= "";
50 syslog_null_open(struct syslogger
*this OVS_UNUSED
, int facility OVS_UNUSED
)
56 syslog_null_log(struct syslogger
*this OVS_UNUSED
, int pri OVS_UNUSED
,
57 const char *msg OVS_UNUSED
)