# Logging to a database rather than a text file

**URL:** <https://www.ruby-forum.com/t/logging-to-a-database-rather-than-a-text-file/147254>\
**Category:** Rails\
**Created:** [August 29, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/logging-to-a-database-rather-than-a-text-file/147254 "2008-08-29T21:29:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DCDCDC](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ebca7d/32.png) [@DCDCDC](https://www.ruby-forum.com/u/DCDCDC)\
**Post date:** [August 29, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/logging-to-a-database-rather-than-a-text-file/147254/1 "2008-08-29T21:29:12Z")

</div>

Hi Y’all… I’m new to rails and would like to setup to log to a  
database rather than a text file as the standard function seems to do.  
Any help pointing me in the right direction to do this would be much  
appreciated. I suppose what I would be doing is finding the right  
class and extending it to do an activerecord update. This would make  
for a great tutorial topic, don’t ya think? Thanks! DC

---

<div class="post-metadata">

**Author:** ![DCDCDC](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ebca7d/32.png) [@DCDCDC](https://www.ruby-forum.com/u/DCDCDC)\
**Post date:** [August 29, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/logging-to-a-database-rather-than-a-text-file/147254/2 "2008-08-29T21:39:44Z")

</div>

Hi, I would highly recommend completing Part II of the following title:

> **[Agile Web Development with Rails 7](https://pragprog.com/titles/rails7/agile-web-development-with-rails-7/)**
>
> Get the comprehensive insider information you need for Rails 7 with the new edition of this award-winning classic.

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![DCDCDC](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ebca7d/32.png) [@DCDCDC](https://www.ruby-forum.com/u/DCDCDC)\
**Post date:** [August 29, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/logging-to-a-database-rather-than-a-text-file/147254/3 "2008-08-29T21:42:05Z")

</div>

Em Friday 29 August 2008, DC escreveu:

> Hi Y’all… I’m new to rails and would like to setup to log to a  
> database rather than a text file as the standard function seems to do.  
> Any help pointing me in the right direction to do this would be much  
> appreciated. I suppose what I would be doing is finding the right  
> class and extending it to do an activerecord update. This would make  
> for a great tutorial topic, don’t ya think? Thanks! DC

Googling for “rails logging to database”, I found this:

[http://wiki.rubyonrails.org/rails/pages/HowtoConfigureLogging](http://wiki.rubyonrails.org/rails/pages/HowtoConfigureLogging)

Any special needs in order to log to database instead .log files?

## HTH,

## Davi V.

E-mail: removed\_email\_address@domain.invalid  
MSN : removed\_email\_address@domain.invalid  
GTalk : removed\_email\_address@domain.invalid  
Skype : davi vidal  
YIM : davi\_vidal  
ICQ : 138815296
