/*
 * The contents of this file are subject to the Mozilla Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * The Original Code is Web Questionnaires 2
 *
 * The Initial Owner of the Original Code is European Environment
 * Agency. Portions created by TripleDev are Copyright
 * (C) European Environment Agency.  All Rights Reserved.
 *
 * Contributor(s):
 *        Anton Dmitrijev
 */
package eionet.webq.service;

import java.util.Collection;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import eionet.webq.dao.ProjectFolders;
import eionet.webq.dao.orm.ProjectEntry;

/**
 * Project service implementation.
 */
@Service
public class ProjectServiceImpl implements ProjectService {
    /**
     * Logger for this class.
     */
    private static final Logger LOGGER = Logger.getLogger(ProjectServiceImpl.class);
    /**
     * Project folders access in storage.
     */
    @Autowired
    ProjectFolders folders;

    @Override
    public Collection<ProjectEntry> getAllFolders() {
        Collection<ProjectEntry> allFolders = folders.getAllFolders();
        LOGGER.info("Loaded " + allFolders.size() + " projects.");
        return allFolders;
    }

    @Override
    public void remove(String projectId) {
        LOGGER.info("Removing project with projectId=" + projectId);
        folders.remove(projectId);
    }

    @Override
    public ProjectEntry getByProjectId(String projectId) {
        ProjectEntry byProjectId = folders.getByProjectId(projectId);
        LOGGER.info("Loaded project=" + byProjectId);
        return byProjectId;
    }

    @Override
    public ProjectEntry getById(int id) {
        ProjectEntry byProjectId = folders.getById(id);
        LOGGER.info("Loaded project=" + byProjectId);
        return byProjectId;
    }

    @Override
    public void saveOrUpdate(ProjectEntry projectEntry) {
        if (projectEntry.getId() > 0) {
            LOGGER.info("Updating project=" + projectEntry);
            folders.update(projectEntry);
        } else {
            LOGGER.info("Saving new project=" + projectEntry);
            folders.save(projectEntry);
        }
    }
}

/*
 * The contents of this file are subject to the Mozilla Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * The Original Code is Web Questionnaires 2
 *
 * The Initial Owner of the Original Code is European Environment
 * Agency. Portions created by TripleDev are Copyright
 * (C) European Environment Agency.  All Rights Reserved.
 *
 * Contributor(s):
 *        Anton Dmitrijev
 */
package eionet.webq.service;

import java.util.Collection;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import eionet.webq.dao.ProjectFolders;
import eionet.webq.dao.orm.ProjectEntry;

/**
 * Project service implementation.
 */
@Service
public class ProjectServiceImpl implements ProjectService {
    /**
     * Logger for this class.
     */
    private static final Logger LOGGER = Logger.getLogger(ProjectServiceImpl.class);
    /**
     * Project folders access in storage.
     */
    @Autowired
    ProjectFolders folders;

    @Override
    public Collection<ProjectEntry> getAllFolders() {
        Collection<ProjectEntry> allFolders = folders.getAllFolders();
        LOGGER.info("Loaded " + allFolders.size() + " projects.");
        return allFolders;
    }

    @Override
    public void remove(String projectId) {
        LOGGER.info("Removing project with projectId=" + projectId);
        folders.remove(projectId);
    }

    @Override
    public ProjectEntry getByProjectId(String projectId) {
        ProjectEntry byProjectId = folders.getByProjectId(projectId);
        LOGGER.debug("Loaded project=" + byProjectId);
        return byProjectId;
    }

    @Override
    public ProjectEntry getById(int id) {
        ProjectEntry byProjectId = folders.getById(id);
        LOGGER.debug("Loaded project=" + byProjectId);
        return byProjectId;
    }

    @Override
    public void saveOrUpdate(ProjectEntry projectEntry) {
        if (projectEntry.getId() > 0) {
            LOGGER.info("Updating project=" + projectEntry);
            folders.update(projectEntry);
        } else {
            LOGGER.info("Saving new project=" + projectEntry);
            folders.save(projectEntry);
        }
    }
}

Change the logging to DEBUG for listing available webforms.