io.tracee.contextlogger.api.ContextLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contextlogger-core Show documentation
Show all versions of contextlogger-core Show documentation
Please refer to https://github.com/tracee/contextlogger.
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);
}