Make logger instance lazy to reduce the serialized size
Using def instead of a local variable for holding a logger instance