class Veritrans::Tercerog::Mdk::MdkLogger
MdkLogger クラス
Mdkで利用するデフォルトロガークラスを定義します。
Public Class Methods
new(_fullname, config_file_name=nil)
click to toggle source
コンストラクタ¶ ↑
- @param
-
_fullname ログ出力クラス識別名
- @param
-
config_file_name ログ設定ファイル名
Calls superclass method
# File tgMdk/lib/tg_mdk/mdk_logger.rb, line 37 def initialize(_fullname, config_file_name=nil) old_verbose = $VERBOSE $VERBOSE = false begin unless config_file_name config_file_name = "#{File.expand_path(File.dirname(__FILE__))}/../../tg_mdk_log4r.yaml" end if config_file_name.end_with?(".xml") Log4r::Configurator.load_xml_file(config_file_name) else Log4r::YamlConfigurator.load_yaml_file(config_file_name) end super(_fullname) self.trace = true ensure $VERBOSE = old_verbose end end