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

de.holisticon.util.tracee.contextlogger.builder.ContextLogger Maven / Gradle / Ivy

The newest version!
package de.holisticon.util.tracee.contextlogger.builder;

/**
 * The context logger interface used to enable fluent API.
 * Created by Tobias Gindler, holisticon AG on 28.03.14.
 */
public interface ContextLogger {
    /**
     * Creates a json string representation of the passed instancesToLog.
     * @param instancesToLog The instances to be converted into a json string.
     * @return
     */
    String createJson(Object... instancesToLog);

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy