class SearchKit::Logger
The SearchKit
logger, handled in its own class mainly for the purpose of allowing the daemonized process to quickly and cleanly reinitialize its connection to logfiles even after its process has been decoupled.
Attributes
logger[R]
Public Class Methods
new()
click to toggle source
# File lib/search_kit/logger.rb, line 15 def initialize environment = SearchKit.config.app_env loginfo = [ SearchKit.config.log_dir, "search-kit-#{environment}.log" ] logpath = File.join(*loginfo) default = ::Logger.new(logpath, "daily") @logger = SearchKit.config.logger || default end