diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-11-29 04:52:52 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:50 +0100 |
commit | 53bd23d0e679746b78d0bcf9234e7b99983e6071 (patch) | |
tree | 51dd89aba98e57c026046fdfbe25ba72aab974a6 /src/base/texture.cpp | |
parent | a9c3f18ebc1dbb1de5c7c9d1585347ed25cc2b52 (diff) | |
download | usdx-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 '')
-rw-r--r-- | src/base/texture.cpp | 7 |
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); } |