CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Logging
Pages: [1]

Author Topic: Logging  (Read 573 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Logging
February 09, 2012, 03:34:42 am
Hey there,

I'm looking at turning on logging on a CiviCRM site.  There doesn't seem to be much about this on the wiki or the forums (though there is this on the issue tracker: http://issues.civicrm.org/jira/browse/CRM-7164).

Anyone have any experience of using it in production?
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

stuart

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3
Re: Logging
February 13, 2012, 07:41:33 am
I turned on the "advanced" logging feature recently, as the traditional log isn't very useful. The new logging feature allows you to see precisely what was updated, and rollback the change if desired.

Before setting it up, I read the blog entry: http://civicrm.org/blogs/shot/new-civicrm-33-feature-logging which seems the most informative source at the moment.

My personal approach (paraphrasing the blog):
- Create a new database just for the logs
- Tell your config file where to find it: add CIVICRM_LOGGING_DSN parameter in your civicrm.settings.php
- Turn on logging (Administer → Configure → Global Settings … Miscellaneous)
- The required tables are then created automatically

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Logging
February 13, 2012, 08:36:45 am
Thanks Stuart - will check it out.

Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Logging

This forum was archived on 2017-11-26.