Generate error log on defined client side event. or sent mail from client side

Is there a way to send or generate a log like a error log everytime a POS invoice is created?

I want to be notified on everytime a pos invoice has been created…is there a way ?

Also is there a way that i will be mailed(a specific email) everytime a POS invoice is created …
Like a client script?
On submit : sent a mail with the invoice details to the following email.

I am looking for ways to have tabs on all POS invoices created other than just printed invoices…

Would appreciate any help

Thanks

Any help on this?

Thanks