aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/menu/drawable_control.cpp3
-rw-r--r--src/menu/drawable_control.hpp2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/menu/drawable_control.cpp b/src/menu/drawable_control.cpp
index bf2ddc74..6967d5fc 100644
--- a/src/menu/drawable_control.cpp
+++ b/src/menu/drawable_control.cpp
@@ -29,6 +29,9 @@
namespace usdx
{
+ log4cpp::Category& DrawableControl::log =
+ log4cpp::Category::getInstance("usdx.menu.drawable_control");
+
DrawableControl::DrawableControl(Container* parent)
: Control(parent), parent(parent)
{
diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp
index e85e9c6b..5605ab62 100644
--- a/src/menu/drawable_control.hpp
+++ b/src/menu/drawable_control.hpp
@@ -28,6 +28,7 @@
#define DRAWABLE_CONTROL_HPP
#include <SDL/SDL.h>
+#include <log4cpp/Category.hh>
#include "drawable.hpp"
#include "control.hpp"
@@ -39,6 +40,7 @@ namespace usdx
class DrawableControl : public Drawable, public Control
{
private:
+ static log4cpp::Category& log;
Container* parent;
public: