aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/VppLog.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/VppLog.hpp')
-rw-r--r--src/include/VppLog.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/VppLog.hpp b/src/include/VppLog.hpp
new file mode 100644
index 0000000..46e05ff
--- /dev/null
+++ b/src/include/VppLog.hpp
@@ -0,0 +1,26 @@
+/* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */
+/*
+ * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+#ifndef __VPP_LOG_H__
+#define __VPP_LOG_H__
+
+#include <opflexagent/logging.h>
+
+#define VLOGD LOG(opflexagent::DEBUG)
+#define VLOGW LOG(opflexagent::WARNING)
+#define VLOGI LOG(opflexagent::INFO)
+#define VLOGE LOG(opflexagent::ERROR)
+
+#endif
+
+/*
+ * Local Variables:
+ * eval: (c-set-style "llvm.org")
+ * End:
+ */