Sha256: 9dbc6d873b271705a9245e28a6c2dfacd2645755ba5e40a02f0d00f4f3ed40a6

Contents?: true

Size: 736 Bytes

Versions: 72

Compression:

Stored size: 736 Bytes

Contents

# Standard logging.
#
require 'logger'
PickyLog = Loggers::Search.new ::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'
#   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(PICKY_ROOT, 'log/search.log'))
# end

Version data entries

72 entries across 72 versions & 2 rubygems

Version Path
picky-generators-2.7.0 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.6.0 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.5.2 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.5.1 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.5.0 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.4.3 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.4.2 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.4.1 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.4.0 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.3.0 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.2.1 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.2.0 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.1.2 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.1.1 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.1.0 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.0.0 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.0.0.pre3 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.0.0.pre2 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-2.0.0.pre1 prototypes/server/shared_unicorn/app/logging.rb
picky-generators-1.5.4 prototypes/server/shared_unicorn/app/logging.rb