aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-22 17:04:10 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:51 +0100
commit1c39e66f571fb9767257740ee74889ce0eb78993 (patch)
tree154821acc316bb6322bdce0ee91cff22aa4f42fc /src
parent545b8bc04c4fec252f769599af0a688a0f89d578 (diff)
downloadusdx-1c39e66f571fb9767257740ee74889ce0eb78993.tar.gz
usdx-1c39e66f571fb9767257740ee74889ce0eb78993.tar.xz
usdx-1c39e66f571fb9767257740ee74889ce0eb78993.zip
menu/frame: added log
Diffstat (limited to 'src')
-rw-r--r--src/menu/frame.cpp3
-rw-r--r--src/menu/frame.hpp2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/menu/frame.cpp b/src/menu/frame.cpp
index ed34b5f9..d3695392 100644
--- a/src/menu/frame.cpp
+++ b/src/menu/frame.cpp
@@ -28,6 +28,9 @@
namespace usdx
{
+ log4cpp::Category& Frame::log =
+ log4cpp::Category::getInstance("usdx.menu.frame");
+
Frame::Frame(Container* parent)
: Container(parent), background(NULL)
{
diff --git a/src/menu/frame.hpp b/src/menu/frame.hpp
index 7a43d59b..6a2b0892 100644
--- a/src/menu/frame.hpp
+++ b/src/menu/frame.hpp
@@ -28,6 +28,7 @@
#define FRAME_HPP
#include <SDL/SDL.h>
+#include <log4cpp/Category.hh>
#include "container.hpp"
#include "frame_background.hpp"
@@ -37,6 +38,7 @@ namespace usdx
class Frame : public Container
{
private:
+ static log4cpp::Category& log;
FrameBackground* background;
protected: