Sha256: 8abe13822ba21a8ef3542adb0c13c099aa0cb9c1e045f3119ed5e15afa1a4a9f
Contents?: true
Size: 768 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
picky-generators-4.9.0 | prototypes/shared/server/logging.rb |
picky-generators-4.8.1 | prototypes/shared/server/logging.rb |
picky-generators-4.8.0 | prototypes/shared/server/logging.rb |