Specifies the logger function.
Note: When LoggerFn is set, it writes internal logic state changes to the log.