In log4j context, .class is used to get the full name of your class and that string is used to configure this logger object. For example,
logger.getlogget (Myclass.class)