I have custom pdate function and then after a update I want to log the update, so I have log class and calling the info method. but, I get an error.. when I use firebug in grid. It shows internal error.
The log code is fine. the cbject calling ($log->warn) calling does not work in after_upadte or delete in grid.
$log->warn("Deleted added inventory:name:$name:,q:$qty1");
Are there any internal logging features?
You either need to create $log class object again OR
Declare $log as global variable inside function.
Looks to be a variable scope issue.
Plus, if you need to log after update … you can also use
on_after_update event. Works same as on_update except that it is fired after the update database query.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?