All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.audit.logger.WriteLogger Maven / Gradle / Ivy

/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.audit.logger;

import org.duracloud.common.queue.task.Task;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Bill Branan
 *         Date: 3/20/14
 */
public class WriteLogger extends BaseLogger {

    // Note that this logger is not named using the standard class name method
    // to keep the information sent to this log out of the primary logs.
    private Logger log = LoggerFactory.getLogger("storage-write");

    public void log(Task task) {
        if(log.isInfoEnabled()) {
            log.info(buildLogMessage(task));
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy