Put log messages inside private methods.