Added init code for log4cxx