Sha256: 8030be515fb803ad6ef77ac60198fb7dac9a87640f8686d85b216a25d2b3796d
Contents?: true
Size: 768 Bytes
Versions: 145
Compression:
Stored size: 768 Bytes
Contents
# 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
Version data entries
145 entries across 96 versions & 1 rubygems