Hi Oleg,

Oleg Barmin schrieb:
I want to save to db information about administration actions like
adding user etc. How can I write a logger for this stuff without
adding a log call to all administration functions?

there are several options:

1. Use aspect oriented programming (no idea how to integrate that with Lenya)

2. Use a common base class for those usecases, would require to patch the core

3. Patch the UsecaseInvokerImpl

4. Override the usecase handlers using custom subclasses


Maybe there are more options, but I don't see an easy way to accomplish your goal without patching the core. Any generic patches are of course very welcome.

-- Andreas


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to