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

io.tracee.contextlogger.TraceeToStringBuilder Maven / Gradle / Ivy

There is a newer version: 0.11.0
Show newest version
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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy