Class LogEventInfo

java.lang.Object
net.solarnetwork.central.domain.LogEventInfo

public class LogEventInfo extends Object
Standard log event info.
  • Constructor Details

    • LogEventInfo

      public LogEventInfo(String[] tags, String message, String data)
      Constructor.
      Parameters:
      tags - the tags
      message - the message
      data - the data
  • Method Details

    • event

      public static LogEventInfo event(String[] baseTags, String message, String data, String... extraTags)
      Create a new event.

      This method will merge the base and extra tags into the resulting event.

      Parameters:
      baseTags - the base tags
      message - the message
      data - the data
      extraTags - optional extra tags
      Returns:
      the event
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTags

      public String[] getTags()
      Get the tags.
      Returns:
      the tags
    • getMessage

      public String getMessage()
      Get the message.
      Returns:
      the message
    • getData

      public String getData()
      Get the data.
      Returns:
      the data