Define logger methods before