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

com.newrelic.opentracing.logging.Logger Maven / Gradle / Ivy

Go to download

New Relic OpenTracing Tracer implementation for instrumenting AWS Lambda functions.

The newest version!
/*
 * Copyright 2020 New Relic Corporation. All rights reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

package com.newrelic.opentracing.logging;

import java.util.List;

public interface Logger {

    /**
     * Writes to standard out. Should only be used to write payload data.
     *
     * @param message String to be logged
     */
    void out(String message);

    /**
     * Writes to standard out. Can be used to also write debug messages for trouble-shooting.
     *
     * @param message String to be logged
     */
    void debug(String message);

    /**
     * Return a list of all logged messages. In most implementations this will be a no-op.
     *
     * @return List of all logged message Strings
     */
    List getLogs();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy