Configure how long your log messages need to be kept in Drupal

By default Drupal discards your log entries older then one week. This is done to keep your database small and sharp by throwing out irrelevant log messages.

But sometimes you just want your log messages to be discarded at all. You can override Drupal's default behaviour by altering a setting in the administration section.

Go to Administer > Site configuration > Error reporting (admin/settings/error-reporting).

You will find a setting there saying 'Discard log entries older than'. Well, that was what we were looking for :)

Written on January 21, 2008 at 17:10, tagged as Drupal, error reporting, logs, things you might have overlooked, tips

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

About

drupalcoder.com is a blog on all things Drupal in specific and LAMP on OS X in general. It is maintained by Davy Van Den Bremt, a Belgian (Drupal) web developer and designer living in Ghent. The goal of this blog is to log all interesting things that have crossed the writer's path while developing Drupal sites. You can read all about Davy's professional activities on his LinkedIn profile. If you want to get in touch, use the contact form.