Another predefined logic layer is for logging purposes. Since there is a myriad of loggers out there, MicroStream doesn't provide any special adapter, but a generic type which can be used to adapt to the logging framework of your choice.
Just create a class and implement EntityLogger, and you are good to go.
publicclassJulLoggerimplementsEntityLogger
{
@Override
publicvoidafterUpdate(
finalEntity identity,
finalEntity data,
finalboolean successful)
{
Logger.getLogger(identity.getClass().getName())
.info("Entity updated");
}
}
Additional to afterUpdate there are further hooks: