# 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