This is the manual for older MicroStream versions (Version < 5.0).
The new documentation (Version >= 5.0) is located at:
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.
public class JulLogger implements EntityLogger
public void afterUpdate(
final Entity identity,
final Entity data,
final boolean successful)
afterUpdatethere are further hooks:
Now just add the logger when creating entities:
JulLogger logger = new JulLogger();
Person john = PersonCreator.New()
When you call
the logger's output is
Oct 15, 2019 11:17:53 AM JulLogger afterUpdate
INFO: Entity updated