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

io.tracee.contextlogger.api.ContextLogger Maven / Gradle / Ivy

There is a newer version: 0.11.0
Show newest version
package io.tracee.contextlogger.api;

/**
 * The context logger interface used to enable fluent API.
 * Created by Tobias Gindler, holisticon AG on 28.03.14.
 */
public interface ContextLogger extends ToStringBuilder {

    /**
     * Creates a string representation of the passed instancesToLog and passes them to all configured connectors.
     *
     * @param instancesToLog The instances to be converted into a string.
     */
    void log(Object... instancesToLog);

    /**
     * Creates a string representation of the passed instancesToLog and passes them to all configured connectors.
     * Adds a prefixed message string for {@link io.tracee.contextlogger.connector.LogConnector}.
     *
     * @param prefixedMessage The message to be prefixed with the LogConnector
     * @param instancesToLog The instances to be converted into a string.
     */
    void logWithPrefixedMessage(String prefixedMessage, Object... instancesToLog);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy