PHPackages                             locastic/loggastic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. locastic/loggastic

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

locastic/loggastic
==================

Activity logs for Symfony, stored in Elasticsearch or your relational database

v2.1.0(1mo ago)3819.1k↓51.9%7[1 issues](https://github.com/Locastic/Loggastic/issues)[2 PRs](https://github.com/Locastic/Loggastic/pulls)MITPHPPHP &gt;=8.2CI passing

Since Jun 27Pushed 1y ago8 watchersCompare

[ Source](https://github.com/Locastic/Loggastic)[ Packagist](https://packagist.org/packages/locastic/loggastic)[ RSS](/packages/locastic-loggastic/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (48)Versions (21)Used By (0)

Loggastic
 [ ![](https://camo.githubusercontent.com/d31edcca4ae054440dbca4605ab401706bf750e1c883ec04598997a27872413b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6f6361737469632f6c6f676761737469632e737667) ](https://packagist.org/packages/locastic/loggastic "License") [ ![](https://camo.githubusercontent.com/c8a5d2243e4f6805c7114aab3a2752484e217c8ac168869ff04eacda21024cbb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c6f6361737469632f6c6f676761737469632e737667) ](https://packagist.org/packages/locastic/loggastic "Version") [ ![](https://camo.githubusercontent.com/9a09adc0128e1cfc4f1379a7184cfaae0e4bee49cc2710ab056273e1c525d209/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4c6f6361737469632f4c6f67676173746963) ](https://scrutinizer-ci.com/g/Locastic/Loggastic/ "Scrutinizer") [ ![](https://camo.githubusercontent.com/20386ecfe3597a29a57815f498091306138bc1c306f6a5d983eadbae664fe07b/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6361737469632f6c6f676761737469632f646f776e6c6f616473) ](https://packagist.org/packages/locastic/loggastic "Total Downloads")
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#loggastic----------------------------------------------------------------)

Loggastic is made for tracking changes to your objects and their relations. Built on top of the **Symfony framework**, this library makes it easy to implement activity logs and store them in **Elasticsearch** or in your **relational database** (via Doctrine DBAL).

Two kinds of records are stored for each tracked entity:

1. **Activity logs** -&gt; saving all CRUD actions made on an object. And additionally saving before and after values for Edit actions.
2. **Current data trackers** -&gt; saving the latest object values used for comparing the changes made on Edit actions. This enables us to only store before and after values for modified fields in the activity logs.

System requirements
-------------------

[](#system-requirements)

- PHP 8.2+ with Symfony 6.4, 7.x or 8.x (Symfony 8 requires PHP 8.4)
- Doctrine ORM 3.4+ with DoctrineBundle 2.8+ or 3.x
- A storage backend: Elasticsearch 8 or 9 (default), or any relational database supported by Doctrine DBAL

Installation
------------

[](#installation)

`composer require locastic/loggastic`

Quick start
-----------

[](#quick-start)

Mark an entity as loggable with the `Loggable` attribute and put the serialization group on every field you want to track:

```
