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

com.sap.it.commons.logging.Logger Maven / Gradle / Ivy

The newest version!
package com.sap.it.commons.logging;

public interface Logger {

    /**
     * logs a message represented by an instance of {@link Message} under the
     * ERROR logging category. The message parameters are merged in the message
     * text if the message text contains corresponding placeholders (like
     * {0},...)
     * 
     * @param message
     * @param messageParameter
     */
    void log(Message message, Object... messageParameter);

    void log(Message message);

    void log(MessageInstance messageInstance);

    void log(String subsystem, String subsystemPart, String messageId, String messageText);

    void log(String subsystem, String subsystemPart, String messageId, String messageText, Object... messageParameter);

    /**
     * logs a message represented by an instance of {@link CategorizedMessage}
     * under the corresponding logging category. The message parameters are
     * merged in the message text if the message text contains corresponding
     * placeholders (like {0},...)
     * 
     * @param message
     * @param messageParameter
     */
    void log(CategorizedMessage message, Object... messageParameter);

    void log(CategorizedMessage message);

    void log(MessageCategory category, String subsystem, String subsystemPart, String messageId, String messageText);

    void log(MessageCategory category, String subsystem, String subsystemPart, String messageId, String messageText,
            Object... messageParameter);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy