Sha256: d68f3feb0072c39c1965e7ae0a01b87d11b867e6e894726f78fb08c1fdcdd8bd

Contents?: true

Size: 749 Bytes

Versions: 4

Compression:

Stored size: 749 Bytes

Contents

# Standard logging.
#
require 'logger'
PickyLog = Loggers::Search.new ::Logger.new(File.expand_path(File.join(SEARCH_ROOT, 'log/search.log')))

# 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'
#   logger           = SyslogLogger.new log_program_name
#   PickyLog        = Loggers::Search.new logger
#   puts "Logging on syslog #{log_program_name}."
# rescue StandardError
#   puts "Could not connect to the syslog, using the normal log."
#   require 'logger'
#   PickyLog        = Loggers::Search.new ::Logger.new(File.join(SEARCH_ROOT, 'log/search.log'))
# end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
picky-0.0.5 prototype_project/app/logging.rb
picky-0.0.4 prototype_project/app/logging.rb
picky-0.0.3 prototype_project/app/logging.rb
picky-0.0.2 prototype_project/app/logging.rb