
de.holisticon.util.tracee.contextlogger.builder.ContextLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracee-context-logger-impl Show documentation
Show all versions of tracee-context-logger-impl Show documentation
Please refer to https://github.com/holisticon/tracee.
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