]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
added loger
authorRazvan Becheriu <razvan@isc.org>
Thu, 9 May 2019 09:41:33 +0000 (12:41 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 16 May 2019 16:44:50 +0000 (19:44 +0300)
src/hooks/dhcp/mysql_cb/Makefile.am
src/hooks/dhcp/mysql_cb/mysql_cb_log.cc [new file with mode: 0644]
src/hooks/dhcp/mysql_cb/mysql_cb_log.h [new file with mode: 0644]
src/hooks/dhcp/mysql_cb/mysql_cb_messages.cc
src/hooks/dhcp/mysql_cb/mysql_cb_messages.h

index f965573afccd1c27c744dc6e21568ec2b73a883e..6b79a64d29ec58b0b6f3dc7e054e02312c03e265 100644 (file)
@@ -18,6 +18,7 @@ libmysqlcb_la_SOURCES += mysql_cb_dhcp4.cc mysql_cb_dhcp4.h
 libmysqlcb_la_SOURCES += mysql_cb_dhcp6.cc mysql_cb_dhcp6.h
 libmysqlcb_la_SOURCES += mysql_cb_impl.cc mysql_cb_impl.h
 libmysqlcb_la_SOURCES += mysql_cb_messages.cc mysql_cb_messages.h
+libmysqlcb_la_SOURCES += mysql_cb_log.cc mysql_cb_log.h
 libmysqlcb_la_SOURCES += mysql_query_macros_dhcp.h
 libmysqlcb_la_SOURCES += version.cc
 
diff --git a/src/hooks/dhcp/mysql_cb/mysql_cb_log.cc b/src/hooks/dhcp/mysql_cb/mysql_cb_log.cc
new file mode 100644 (file)
index 0000000..46222f3
--- /dev/null
@@ -0,0 +1,18 @@
+// Copyright (C) 2017-2018 Internet Systems Consortium, Inc. ("ISC")
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <config.h>
+
+#include <mysql_cb_log.h>
+
+namespace isc {
+namespace dhcp {
+
+isc::log::Logger mysql_cb_logger("mysql-cb-hooks");
+
+}  // namespace dhcp
+}  // namespace isc
+
diff --git a/src/hooks/dhcp/mysql_cb/mysql_cb_log.h b/src/hooks/dhcp/mysql_cb/mysql_cb_log.h
new file mode 100644 (file)
index 0000000..4f31c2a
--- /dev/null
@@ -0,0 +1,23 @@
+// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef LEASE_CMD_LOG_H
+#define LEASE_CMD_LOG_H
+
+#include <log/logger_support.h>
+#include <log/macros.h>
+#include <mysql_cb_messages.h>
+
+namespace isc {
+namespace dhcp {
+
+extern isc::log::Logger mysql_cb_logger;
+
+}  // namespace dhcp
+}  // namespace isc
+
+
+#endif
index 70518d2e1d0c6f2ccdc11ce5c6441be2bf51f562..296d2d6d3b70cc9831865088fcb591621ac4d464 100644 (file)
@@ -1,4 +1,4 @@
-// File created from ../../../../src/hooks/dhcp/mysql_cb/mysql_cb_messages.mes on Thu May 09 2019 11:51
+// File created from ../../../../src/hooks/dhcp/mysql_cb/mysql_cb_messages.mes on Thu May 09 2019 12:32
 
 #include <cstddef>
 #include <log/message_types.h>
index e3ac51615479bd3093f6faf46278479b6b443c3a..42dcccdc76f25a63d57dc01cd59aa59aa7006cc6 100644 (file)
@@ -1,4 +1,4 @@
-// File created from ../../../../src/hooks/dhcp/mysql_cb/mysql_cb_messages.mes on Thu May 09 2019 11:51
+// File created from ../../../../src/hooks/dhcp/mysql_cb/mysql_cb_messages.mes on Thu May 09 2019 12:32
 
 #ifndef MYSQL_CB_MESSAGES_H
 #define MYSQL_CB_MESSAGES_H