Java tutorial
//package com.java2s; import android.util.Log; public class Main { /** * Logs a life cycle method for a given object. Log message is debug and will include class name. * * @param object * @param lifeCycleMethodName */ public static void logLC(Object object, String lifeCycleMethodName) { Log.d("LifeC - " + object.getClass().getSimpleName(), lifeCycleMethodName); } }