spec/support/suite.rb in tengine_support-0.3.7 vs spec/support/suite.rb in tengine_support-0.3.8
- old
+ new
@@ -24,16 +24,16 @@
:rotation => 3 ,
:rotation_size => 1024 * 1024,
:level => 'info' ,
}, &hide_about_rotation)
add(:application_log, App1::LoggerConfig,
- :logger_name => "application",
+ :parameters => { :logger_name => "application" },
:dependencies => { :process_config => :process, :log_common => :log_common,}, &hide_about_rotation)
add(:process_stdout_log, App1::LoggerConfig,
- :logger_name => "#{File.basename($PROGRAM_NAME)}_stdout",
+ :parameters => { :logger_name => proc{ "#{File.basename(__FILE__, '.*')}_stdout"} },
:dependencies => { :process_config => :process, :log_common => :log_common,}, &hide_about_rotation)
add(:process_stderr_log, App1::LoggerConfig,
- :logger_name => "#{File.basename($PROGRAM_NAME)}_stderr",
+ :parameters => { :logger_name => "#{File.basename(__FILE__, '.*')}_stderr" },
:dependencies => { :process_config => :process, :log_common => :log_common,}, &hide_about_rotation)
separator("\nGeneral:")
__action__(:version, "show version"){ STDOUT.puts "1.1.1"; exit }
__action__(:dump_skelton, "dump skelton of config"){ STDOUT.puts YAML.dump(root.to_hash); exit }
__action__(:help , "show this help message"){ STDOUT.puts option_parser.help; exit }