log4j configuration to log warnings and more severe things to console.
Taking note of daily event relations and SQL function to delete old data.