Use of Log4j in web and console applications