def create(name, level = ::Logger::INFO)
      dir = "#{Bitcoin.base_dir}/log"
      FileUtils.mkdir_p(dir)
      logger = ::Logger.new(dir + "/#{name}.log", 10)
      logger.level = level
      logger.formatter =  proc do |severity, datetime, progname, msg|
        Format % [severity[0..0], format_datetime(datetime), $$,
                  Thread.current.object_id, severity, progname, msg2str(msg)]
      end
      logger
    end
def create(name, level = ::Logger::INFO)
      dir = "#{Bitcoin.base_dir}/log"
      FileUtils.mkdir_p(dir)
      logger = ::Logger.new(dir + "/#{name}.log", 10)
      logger.level = level
      logger.formatter =  proc do |severity, datetime, progname, msg|
        Format % [severity[0..0], format_datetime(datetime), $$,
                  Thread.current.object_id, severity, progname, msg2str(msg)]
      end
      logger
    end
Create a logger with given +name+.log in $HOME/.bitcoinrb/log.