2011-11-05 73 views
0

我正在尋找建立到應用程序一些自定義日誌記錄信息稍後在其他部分其他應用程序中使用。用最簡單的術語來說,這是一個「每個用戶」的日誌。'每X'登錄Rails應用程序

什麼是最好的方式去做這件事?

1. log to dev/production log, then find some way to parse that when I need to information 
2. create a custom log file, then parse that when needed 
3. log the info to a db text field with the user 

我已經開始尋找到這一點,所有的3可行的,我很好奇,以他人如何以標準化的方式(也許這是我沒有想到的)解決了這個。

重申:對於rails應用程序的實體日誌記錄,最好的方法是什麼?

回答

0

解決了通過學習log4r(和常規記錄器),只是通過我所需要的工作。沒有魔法。