diff --git a/.gitattributes b/.gitattributes
index 26ce84605251710dae8293ec1c62c482224d04a5..68f6ba6b90c979b8fc3642b62cf2584274ee05f6 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1191,6 +1191,7 @@ cmake/FindGlobus.cmake -text
 cmake/FindHDF5.cmake -text
 cmake/FindLAPACK.cmake -text
 cmake/FindLibxml2.cmake -text
+cmake/FindLog4CPlus.cmake -text
 cmake/FindMatlab.cmake -text
 cmake/FindMySQL.cmake -text
 cmake/FindNumarray.cmake -text
diff --git a/cmake/FindLog4CPlus.cmake b/cmake/FindLog4CPlus.cmake
new file mode 100644
index 0000000000000000000000000000000000000000..c2aaaf924aa68398ba4aae75dad74c0e7116340f
--- /dev/null
+++ b/cmake/FindLog4CPlus.cmake
@@ -0,0 +1,91 @@
+# +-----------------------------------------------------------------------------+
+# | $Id:: IO.h 393 2007-06-13 10:49:08Z gels                                  $ |
+# +-----------------------------------------------------------------------------+
+# |   Copyright (C) 2007                                                        |
+# |   Martin Gels (gels@astron.nl)                                           |
+# |                                                                             |
+# |   This program is free software; you can redistribute it and/or modify      |
+# |   it under the terms of the GNU General Public License as published by      |
+# |   the Free Software Foundation; either version 2 of the License, or         |
+# |   (at your option) any later version.                                       |
+# |                                                                             |
+# |   This program is distributed in the hope that it will be useful,           |
+# |   but WITHOUT ANY WARRANTY; without even the implied warranty of            |
+# |   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
+# |   GNU General Public License for more details.                              |
+# |                                                                             |
+# |   You should have received a copy of the GNU General Public License         |
+# |   along with this program; if not, write to the                             |
+# |   Free Software Foundation, Inc.,                                           |
+# |   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.                 |
+# +-----------------------------------------------------------------------------+
+
+# Check for the presence of log4CPlus (LOG4CPLUS).
+#
+# The following variables are set when LOG4CPLUS is found:
+#  HAVE_LOG4CPLUS       = Set to true, if all components of LOG4CPLUS have been found.
+#  LOG4CPLUS_INCLUDES   = Include path for the header files of LOG4CPLUS
+#  LOG4CPLUS_LIBRARIES  = Link these to use LOG4CPLUS
+#  LOG4CPLUS_LFGLAS     = Linker flags (optional)
+
+## -----------------------------------------------------------------------------
+## Search locations
+
+include (CMakeSettings)
+
+## -----------------------------------------------------------------------------
+## Check for the header files
+
+find_path (LOG4CPLUS_INCLUDES log4cplus/logger.h
+  PATHS ${include_locations}
+  /usr/local/log4cplus/gnu/include
+  NO_DEFAULT_PATH
+  )
+
+get_filename_component (LOG4CPLUS_INCLUDES ${LOG4CPLUS_INCLUDES} ABSOLUTE)
+
+## -----------------------------------------------------------------------------
+## Check for the library
+
+find_library (LOG4CPLUS_LIBRARIES liblog4cplus.so
+  PATHS ${lib_locations}
+  /usr/local/log4cplus/gnu/lib64/
+  NO_DEFAULT_PATH
+  )
+
+## -----------------------------------------------------------------------------
+## Actions taken when all components have been found
+
+if (LOG4CPLUS_INCLUDES AND LOG4CPLUS_LIBRARIES)
+  set (HAVE_LOG4CPLUS TRUE)
+else (LOG4CPLUS_INCLUDES AND LOG4CPLUS_LIBRARIES)
+  set (HAVE_LOG4CPLUS FALSE)
+  if (NOT LOG4CPLUS_FIND_QUIETLY)
+    if (NOT LOG4CPLUS_INCLUDES)
+      message (STATUS "Unable to find LOG4CPLUS header files!")
+    endif (NOT LOG4CPLUS_INCLUDES)
+    if (NOT LOG4CPLUS_LIBRARIES)
+      message (STATUS "Unable to find LOG4CPLUS library files!")
+    endif (NOT LOG4CPLUS_LIBRARIES)
+  endif (NOT LOG4CPLUS_FIND_QUIETLY)
+endif (LOG4CPLUS_INCLUDES AND LOG4CPLUS_LIBRARIES)
+
+if (HAVE_LOG4CPLUS)
+  if (NOT LOG4CPLUS_FIND_QUIETLY)
+    message (STATUS "Found components for LOG4CPLUS")
+    message (STATUS "LOG4CPLUS_INCLUDES  = ${LOG4CPLUS_INCLUDES}")
+    message (STATUS "LOG4CPLUS_LIBRARIES = ${LOG4CPLUS_LIBRARIES}")
+  endif (NOT LOG4CPLUS_FIND_QUIETLY)
+else (HAVE_LOG4CPLUS)
+  if (LOG4CPLUS_FIND_REQUIRED)
+    message (FATAL_ERROR "Could not find LOG4CPLUS!")
+  endif (LOG4CPLUS_FIND_REQUIRED)
+endif (HAVE_LOG4CPLUS)
+
+## -----------------------------------------------------------------------------
+## Mark advanced variables
+
+mark_as_advanced (
+  LOG4CPLUS_INCLUDES
+  LOG4CPLUS_LIBRARIES
+  )