I want to logging to file and set it in properties file, because default logger.info() output goes to console and in web application there is no console in my case.
If you are using Tomcat, then you should log to $CATALINA_HOME/logs/myapp/myapp.log.
$CATALINA_HOME/logs/myapp/myapp.log