Sounds good solution Robert, maybe it could be done with some python script reading the log file in real-time and using Proteus to add the login/logout details into a Tryton table?
Regards Ivan On Wed, Nov 28, 2012 at 5:41 PM, Robert Schöftner <[email protected]> wrote: > Am 2012-11-28 11:44, schrieb Ivan Garcia: > > I don't think it is a good idea to log such information in the database >> because of the transaction. >> You have all the information in the log of the server, so I think it is >> better to parse the log file. >> > > > I agree about parsing the log file. > Only the part I didn't understand is the 'because of the transaction', can > you explain a bit more?Thanks. > > It is possible to write a log-handler that directly puts the log into the > database. You would need a separate db-connection to avoid interference > with trytond. > > see > http://stackoverflow.com/questions/935930/creating-a-logging-handler-to-connect-to-oracle/1014450#1014450 > > Regards > Robert > > -- > -- > [email protected] mailing list > > > > -- -- [email protected] mailing list
