Sha256: a744b285c7115368db1b8a00165e3f15f95d78509bf1b104fb6d4f9539bb8c28
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 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' # Picky.logger = 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' # Picky.logger = Logger.new(File.join(PICKY_ROOT, 'log/search.log')) # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-generators-3.0.0.pre2 | prototypes/server/sinatra/logging.rb |