aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/image.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-11-29 04:52:52 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:50 +0100
commit53bd23d0e679746b78d0bcf9234e7b99983e6071 (patch)
tree51dd89aba98e57c026046fdfbe25ba72aab974a6 /src/base/image.cpp
parenta9c3f18ebc1dbb1de5c7c9d1585347ed25cc2b52 (diff)
downloadusdx-53bd23d0e679746b78d0bcf9234e7b99983e6071.tar.gz
usdx-53bd23d0e679746b78d0bcf9234e7b99983e6071.tar.xz
usdx-53bd23d0e679746b78d0bcf9234e7b99983e6071.zip
ported from log4cxx to log4cpp
log4cxx depends on Apache Portable Runtime Utility Library, so we switch to log4cpp with nearly the same features but with no dependencies for easier porting to other platforms
Diffstat (limited to 'src/base/image.cpp')
-rw-r--r--src/base/image.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/base/image.cpp b/src/base/image.cpp
index 7b06cc3e..753c8ec3 100644
--- a/src/base/image.cpp
+++ b/src/base/image.cpp
@@ -30,8 +30,8 @@
namespace usdx
{
- log4cxx::LoggerPtr Image::log =
- log4cxx::Logger::getLogger("usdx.base.Image");
+ log4cpp::Category& Image::log =
+ log4cpp::Category::getInstance("usdx.base.Image");
ImageLoadException::ImageLoadException(std::string error) :
error(error)
@@ -68,7 +68,8 @@ namespace usdx
surface = IMG_Load_RW(source, 1);
if (surface == NULL) {
- LOG4CXX_ERROR(log, "Error loading image: " << filename);
+ log << log4cpp::Priority::ERROR <<
+ "Error loading image: " << filename;
throw ImageLoadException(IMG_GetError());
}
}