I am running a sinatra app through RACK.
To which file does the activity get logged ? Also how can I set the log file path ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends. Many developers define their app log file to app/servername.log or just to the current path where the Rack app is loaded.
Yes you can change it’s path.
Usually you get a config.ru file with something like:
and/or
in this case the log file is located under appdir/sinatra.log. But remember this code can be anywhere in your Rack app, so please seek for “log” in your application directory.
have fun and post here your config.ru and/or the mainprojectfile.rb.