log
database table using a shared-memory buffer and a programmed Janitor commit task for optimal performance, resulting in a system capable of ingesting many events per second without a noticeable performance impact.You can create thelog
table in your database by importing thelog.sql
file you'll find in the Cherrycake skeleton repository, under theinstall/database
directory.
LogEventMovieSearch
in the file classes/LogEventMovieSearch.class.php
like this:additionalData
hash array like we did above, we wanted to be able to just pass the movie title and let the constructor take care of it. We would do it like this:LogEventMovieSearch
. To do it, we would modify the LogEventMovieSearch
class like this: