In our project , we have requirement that project will have different log file based on server log level. Error statement should go to error-console-YYYYMMDD.log , info statement should go to info-console-YYYYMMDD.log , warn statement should go to warn-console-YYYYMMDD.log file.