Short answer: Yes, it stores indefinitely. If you cannot find the information you are looking for, you may have unknowingly truncated the log at some point, or your application is configured otherwise.
Slightly longer answer: The default logger is an instance of ActiveSupport::BufferedLogger
, which is a really simple logger. Even simpler than Ruby's stock Logger class. It doesn't know about limits or rotation.
But Rails is compatible with any Ruby Logger or Log4r-like object. If the application you installed is not one of your own making, and you want to know if it's doing something different from stock Rails, you could look in your config
directory to see if it's using a different logger class.
A different logger is usually configured using config.logger = [...]
in config/environment.rb
or config/environments/production.rb
. In the default Rails application template, the latter file contains the following commented example:
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new