com.newrelic.opentracing.logging.Logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-java-lambda Show documentation
Show all versions of newrelic-java-lambda Show documentation
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();
}