This function takes the following parameters:
AM_ACCESS_ALLOW or AM_ACCESS_DENY.
Any message for the log.