]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/capture/ipq_linux/ipq_cap.cpp
Introduced logger for plugins.
[stg.git] / projects / stargazer / plugins / capture / ipq_linux / ipq_cap.cpp
index d0192e0ab65075dec4afeb209d223519c359b497..6cf5b0f94559eaa8c0b1d8156936aa058868a2d4 100644 (file)
@@ -27,6 +27,7 @@
 #include "stg/raw_ip_packet.h"
 #include "stg/traffcounter.h"
 #include "stg/plugin_creator.h"
+#include "stg/common.h"
 
 #include "ipq_cap.h"
 
@@ -62,7 +63,8 @@ IPQ_CAP::IPQ_CAP()
       isRunning(false),
       capSock(-1),
       traffCnt(NULL),
-      buf()
+      buf(),
+      logger(GetPluginLogger(GetStgLogger(), "cap_ipq"))
 {
 memset(buf, 0, BUFSIZE);
 }