io.tracee.contextlogger.TraceeToStringBuilder 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;
import io.tracee.contextlogger.api.ConfigBuilder;
import io.tracee.contextlogger.api.ToStringBuilder;
import io.tracee.contextlogger.impl.ConfigBuilderImpl;
import io.tracee.contextlogger.impl.ContextLoggerConfiguration;
/**
* Class for creation of String representations for instance trees.
*/
public class TraceeToStringBuilder extends AbstractToStringBuilder {
private TraceeToStringBuilder(ContextLoggerConfiguration contextLoggerConfiguration) {
super(contextLoggerConfiguration);
}
public static ConfigBuilder create() {
TraceeToStringBuilder toStringBuilder = new TraceeToStringBuilder(ContextLoggerConfiguration.getOrCreateContextLoggerConfiguration());
return new ConfigBuilderImpl(toStringBuilder);
}
public static ToStringBuilder createDefault() {
return create().apply();
}
@Override
public void log(final Object... instancesToLog) {
// NOT IMPLEMENTED
}
@Override
public void logWithPrefixedMessage(final String prefixedMessage, final Object... instancesToLog) {
// NOT IMPLEMENTED
}
}