Sha256: e899481cb2b03817d832b1b7a875611d53e3a285e30ea7aa946645a2fd3c4eb8

Contents?: true

Size: 715 Bytes

Versions: 51

Compression:

Stored size: 715 Bytes

Contents

# Separate file since this is usually what is
# environment specific.
#

# Standard logging.
#
require 'logger'
Picky.logger = 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

51 entries across 51 versions & 1 rubygems

Version Path
picky-generators-3.1.4 prototypes/server/classic/app/logging.rb
picky-generators-3.1.3 prototypes/server/classic/app/logging.rb
picky-generators-3.1.2 prototypes/server/classic/app/logging.rb
picky-generators-3.1.1 prototypes/server/classic/app/logging.rb
picky-generators-3.1.0 prototypes/server/classic/app/logging.rb
picky-generators-3.0.1 prototypes/server/classic/app/logging.rb
picky-generators-3.0.0 prototypes/server/classic/app/logging.rb
picky-generators-3.0.0.pre5 prototypes/server/classic/app/logging.rb
picky-generators-3.0.0.pre4 prototypes/server/classic/app/logging.rb
picky-generators-3.0.0.pre3 prototypes/server/classic/app/logging.rb
picky-generators-3.0.0.pre2 prototypes/server/classic/app/logging.rb