railsã®loggerãè¯ãè¨ãã°ãããã«ãæªãè¨ãã¨ãã°ã¨ãã¦ã®æ©è½ãæºããã¦ãªãããããªãã®ã£ã¦ããã貧弱ãªã®ã§ããã°ã®ãã©ã¼ããããå¤ãããã¨ããã£ãã ç°å¢ã¯ruby2.0.0-p247, rails4.0.0 Rails.loggerã®ç¶æ¿å ããã©ã«ãã®railsã®loggerã¯ä»¥ä¸ã®ããã«ä½¿ããã¨ãåºæ¥ãã Rails.logger.debug("This is debug log") # => This is debug log ãã°ã¡ãã»ã¼ã¸ã®ã¿ã®åºåããç¡ããããã¦ãã°ãåããæå»ã¨ããã°ã¬ãã«ãããã¯åºåãã¦æ¬²ããã ãããããã®Rails.loggerã¯ãªã«ãã®ãªã®ã klass = Rails.logger.class # => ActiveSupport::Logger p klass.ancestors # [ActiveSupport::Logger, #
{{#tags}}- {{label}}
{{/tags}}