Skip to content

Wrap PHPCR session completely to enable operation log #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dantleech opened this issue Jul 20, 2014 · 2 comments
Open

Wrap PHPCR session completely to enable operation log #71

dantleech opened this issue Jul 20, 2014 · 2 comments

Comments

@dantleech
Copy link
Member

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.

@lsmith77
Copy link
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.

@dantleech
Copy link
Member Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants