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

com.newrelic.opentracing.logging.DebugLogger 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.LinkedList;
import java.util.List;

/**
 * The debug logger writes payload data to standard out, like the console logger, but also logs
 * debug messages. It should only be used if a certain environment variable is present.
 */
public class DebugLogger implements Logger {

    @Override
    public void out(String message) {
        System.out.println(message);
    }

    @Override
    public void debug(String message) {
        System.out.println("nr_debug: " + message);
    }

    @Override
    public List getLogs() {
        return new LinkedList<>();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy