Allow to log errors to error_log

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>