Interface Logs


  • public interface Logs
    Used to send LogEvents to New Relic. Each LogEvent represents a single log line.
    • Method Detail

      • recordLogEvent

        void recordLogEvent​(java.util.Map<LogAttributeKey,​?> attributes)
        Sends a LogEvent for the current application.
        Parameters:
        attributes - A map of log event data (e.g. log message, log timestamp, log level) Each key should be a String and each value should be a String, Number, or Boolean. For map values that are not String, Number, or Boolean object types the toString value will be used.
        Since:
        7.6.0