Coder Social home page Coder Social logo

cakephp-activity-logger's People

Contributors

elastic-inc avatar gringlas avatar nojimage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cakephp-activity-logger's Issues

need help

do you have video tutorials on how implement this / how it works / demo? thank you.

Duplicate record being created

When using a controller in the name space App\Controller\Api the plugin creates a duplicate record for \App as well as the model.

Does not create log

Hi!
tried your usage example with my classes but does not work on cake 3.7.3 -.-
there is no error message or debug info shown neither an entry on 'activity_logs' is created

Handle logging entity association changes

Not sure if this exists and could be documented, or if this is feature request. But it would be nice to be able to have some way to logging changes of associated entities. For instance I have a task entity with a foreign key that points to another table with a specific priority level. The package currently logs the changed key, but it would be nice to be able to set it to log other values from the associated entity, such as a priority's name, description, etc. so a user without access to the database could understand what the changed in key means.

Request: Add custom message to the default create/update/delete log entries

I want to add a custom message when updating an Entity. Like this:

$this->Articles->setLogMessage( 'Custom Message' );
$article = $this->Articles->patchEntity([ /* ... */ ]);
$this->Articles->save($article);
// saved log
// [action='update', scope_model='Articles', message='Custom Message', ...]

If I use activityLog() it is difficult to match it to the update log entry.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.