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
==================

ElasticSearch activity logs for Symfony

v1.1.6-beta(10mo ago)3816.5k↓34.4%8[1 issues](https://github.com/Locastic/Loggastic/issues)[2 PRs](https://github.com/Locastic/Loggastic/pulls)MITPHPPHP &gt;=8.2CI passing

Since Jun 27Pushed 10mo ago8 watchersCompare

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

READMEChangelog (10)Dependencies (20)Versions (18)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 on **Elasticsearch** for fast logs browsing.

Each tracked entity will have two indexes in the ElasticSearch:

1. `entity_name_activity_log` -&gt; saving all CRUD actions made on an object. And additionally saving before and after values for Edit actions.
2. `entity_name_current_data_tracker` -&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_log` index

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

[](#system-requirements)

Elasticsearch version 7.17

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

[](#installation)

`composer require locastic/loggastic`

Making your entity loggable
---------------------------

[](#making-your-entity-loggable)

To make your entity loggable you need to do the following steps:

### 1. Add Loggable attribute to your entity

[](#1-add-loggable-attribute-to-your-entity)

Add `Locastic\Loggastic\Annotation\Loggable` annotation to your entity and define serialization group name:

```
