Add message to log file for some action

How can i add some message for some action (add/update/delete)

For example when somebody delete CI - save to log:  when, who and what was delete.

I make trigger for device table with triggers type =5 (before delete) and just one line there - print();

but this message is not added to the log file.