Logs a message with its associated simulation time.
the simulation time at which the event occurred
a lambda that generates the message text