Logging on main life cycle functions