Skip to content

Wrap PHPCR session completely to enable operation log #71

Open

Description

@dantleech

It would be useful to be able to see what operations have been scheduled, for example before calling session:save.

One way to accomplish this would be to wrap the Phpcr session and wrap the implementations NodeInterface classes and add logging capabilities to them.

We could then add a command such as:

shell:session:log --nodes
+-------------------------------+
| Path      | Method     | Args |
+-------------------------------+
+ /path    | remove     |     |

etc.

Activity

  1. lsmith77 commented on Jul 22, 2014

    @lsmith77
    Member

    when I added logging to Jackalope, I was also pondering how to approach this. One solution could of course have been to simply make logging part of PHPCR. In the end I decided on just adding logging to Jackalope's transport layer. A generic logging wrapper would be awesome of course but seemed even more ambitious. If one is created it should be a standalone project though.

  2. dantleech commented on Jul 22, 2014

    @dantleech
    MemberAuthor

    Yeah, I guess it would be beneficial for everyone, and I guess it could start off as a partial wrapper and expand as required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions