com.newrelic.opentracing.logging.ConsoleLogger 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.LinkedList;
import java.util.List;
/**
* The console logger should only be used for writing payload data to standard out.
* It should be the default logger and it should ignore debug messages.
*/
public class ConsoleLogger implements Logger {
@Override
public void out(String message) {
System.out.println(message);
}
@Override
public void debug(String message) {
}
@Override
public List getLogs() {
return new LinkedList<>();
}
}