aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/base/texture.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/base/texture.cpp b/src/base/texture.cpp
index ee26a5c8..cf24b9ce 100644
--- a/src/base/texture.cpp
+++ b/src/base/texture.cpp
@@ -28,8 +28,8 @@
namespace usdx
{
- log4cxx::LoggerPtr Texture::log =
- log4cxx::Logger::getLogger("usdx.base.texture");
+ log4cpp::Category& Texture::log =
+ log4cpp::Category::getInstance("usdx.base.texture");
Texture::Texture(boost::filesystem::wpath filename) :
filename(filename), texture(0), size(0, 0), rotation(0)
@@ -73,7 +73,8 @@ namespace usdx
break;
default:
- LOG4CXX_ERROR(log, "" << filename << " is not in true color! Could not handle that!");
+ log << log4cpp::Priority::ERROR << "'" << filename <<
+ "' is not in true color! Could not handle that!";
throw TextureColorDepthException(image.get_surface()->format->BytesPerPixel);
}