code: public static Log getLog(Object obj) {
  
          if (obj instanceof String) {
              return LogFactory.getLog((String)obj);
          } else if (obj instanceof Class<?>) {
              return LogFactory.getLog((Class<?>)obj);
          } else {
              return LogFactory.getLog(obj.getClass());
          }
      }
docs: Returns the log for the selected object.<p>
  
  If the provided object is a String, this String will
  be used as channel name. Otherwise the objects
  class name will be used as channel name.<p>
  
  @param obj the object channel to use
  @return the log for the selected object channel