Sha256: c1dde38ffdaeba4a66bb5c18097bc5dc50fbe88d39ac5fab3108e14ded1778f3
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
# Standard logging. # require 'logger' PickyLog = Picky::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 = Picky::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 = Picky::Loggers::Search.new ::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.pre1 | prototypes/server/shared_unicorn/app/logging.rb |