aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-22 16:56:33 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:51 +0100
commitd11ead2f05a8e52b36e3961d2f583757b99464bc (patch)
treea505da756ec59facc250e96b4ebed0a4da8b4016 /src
parenta50059f7cf56c9e3227afe5f1b34cbd4ff50527e (diff)
downloadusdx-d11ead2f05a8e52b36e3961d2f583757b99464bc.tar.gz
usdx-d11ead2f05a8e52b36e3961d2f583757b99464bc.tar.xz
usdx-d11ead2f05a8e52b36e3961d2f583757b99464bc.zip
menu/drawable_control: added log
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: