Add log4php lib and config.
Change writer to class variable.