Module: Patriot::Util::Logger
- Includes:
- Config
- Included in:
- Command::Base, Controller::PackageController, Controller::WorkerAdminController, JobStore::Base, JobStore::InMemoryStore, JobStore::RDBJobStore, Tool::BatchParser, Worker::Base, Worker::InfoServer
- Defined in:
- lib/patriot/util/logger.rb,
lib/patriot/util/logger/facade.rb,
lib/patriot/util/logger/factory.rb,
lib/patriot/util/logger/log4r_factory.rb,
lib/patriot/util/logger/webrick_log_factory.rb
Overview
logger namespace
Defined Under Namespace
Classes: Facade, Factory, Log4rFactory, WebrickLogFactory
Constant Summary
Constants included from Config
Config::ADMIN_USER_KEY, Config::DEFAULT_CONFIG, Config::DEFAULT_PLUGIN_DIR, Config::INFO_SERVER_PORT_KEY, Config::PASSWORD_KEY, Config::PLUGIN_DIR_KEY, Config::PLUGIN_INIT_SCRIPT, Config::PLUGIN_KEY, Config::PLUGIN_LIB_DIR, Config::USERNAME_KEY, Config::WORKER_HOST_KEY, Config::WORKER_USER_KEY
Instance Method Summary collapse
-
#create_logger(conf) ⇒ Object
create logger based on a given configration.
Methods included from Config
Instance Method Details
#create_logger(conf) ⇒ Object
create logger based on a given configration
17 18 19 20 |
# File 'lib/patriot/util/logger.rb', line 17 def create_logger(conf) name = self.class.to_s @logger = Patriot::Util::Logger::Factory.create_logger(name, conf) end |