Skip to content
This repository
tree: 99c642f449
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (22 sloc) 0.768 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Separate file since this is usually what is
# environment specific.
# (But go ahead and place the code in app.rb if you wish)
#

# Standard logging.
#
require 'logger'
AppLogger = Logger.new File.expand_path('log/search.log', Picky.root)

# Example with using the syslog logger.
# Falling back to the standard log if it isn't available.
# (For example, because it is used locally and syslog is
# only available on the servers)
#
# begin
# log_program_name = 'search/query'
# AppLogger = SyslogLogger.new log_program_name
# puts "Logging on syslog #{log_program_name}."
# rescue StandardError
# puts "Could not connect to the syslog, using the normal log."
# require 'logger'
# AppLogger = Logger.new(File.join(Picky.root, 'log/search.log'))
# end
Something went wrong with that request. Please try again.