Rails记录API [英] Rails Logging API

查看:55
本文介绍了Rails记录API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一些有关登录Rails的指南?似乎没有关于该主题的官方指南. Rails是否拥有自己的日志记录API,还是在内部使用Ruby日志记录系统?

Is there some guide about logging in Rails? There doesn't seem to be an official guide about that topic. Does Rails have an own logging API, or does it internally use the Ruby logging system?

我正在使用Rails 3.

I am using Rails 3.

推荐答案

根据文档,Rails使用标准的Ruby记录器,如果您愿意,可以在log4r(或其他)中工作:

Per the docs, Rails uses the standard Ruby logger, you can work in log4r (or other) if you'd like: http://guides.rubyonrails.org/debugging_rails_applications.html#the-logger

这篇关于Rails记录API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆