I have a rail application, but sometime after development / debugging, I realized that it would be able to see the whole logfile HTTP request - log / development.log, not just parameters.
I also have to put a different logfile based on the user, not for the session.
Any thoughts will be appreciated!
Angel
You can see fast request.env through it View:
- VIEW : & lt;% = request.env.inspect%>
If you want instead Log in to the development log from your controller:
- Administrators : Rails.logger.info (request.env)
Here you can look for object objects.
Ruby sets logging into a file in the log / directory by using logger from the standard library automatically. The name of the logfile will correspond to your environment, e.g. Logs / development logs
To log message from an administrator or model, access the rail logger frequency along with the logger method:
class YourController & lt; ActionController :: Base def index logger.info request.env End End
About the user, what are you using to authenticate it?
Comments
Post a Comment