Log rotation. By default, we now use the standard Ruby Logger class to rotate the Instiki logfile.

This works fine with the default Webrick. But, if you're running under Mongrel (say), you probably
want to customize this in config/environments/production.rb .
This commit is contained in:
Jacques Distler 2007-03-13 14:54:43 -05:00
parent c704f899af
commit f92ed693c0
2 changed files with 17 additions and 2 deletions

View file

@ -2,7 +2,7 @@ class Wiki
cattr_accessor :storage_path, :logger
self.storage_path = "#{RAILS_ROOT}/storage/"
self.logger = RAILS_DEFAULT_LOGGER
self.logger = INSTIKI_LOGGER
def authenticate(password)
password == (system.password || 'instiki')
@ -89,4 +89,4 @@ class Wiki
def write_page(web_address, page_name, content, written_on, author, renderer)
Web.find_by_address(web_address).add_page(page_name, content, written_on, author, renderer)
end
end
end