How to Implement loggers for debuging
Dear Community,
I have a sampleToolboxConfigurationPresenter class for my Toolbox configuration, as below:
public class sampleToolboxConfigurationPresenter extends samplePresenter {
private final Dao<sampleToolboxConfigurationDto> dao = new GenericSlingDao<sampleToolboxConfigurationDto>(sampleToolboxConfigurationDto.class);
/** {@inheritDoc} */
@Override
public sampleToolboxConfigurationModel getModelFromResource(SlingHttpServletRequest request,Resource resource) {
sampleToolboxConfigurationDto dto = dao.getDtoOrNewOnError(resource);
return new sampleToolboxConfigurationModel(dto);
}
}
Could you please let me know In The above code How can I get the attributes of dto by using the loggers .And how can I use the loggers for debuging.
