Klasse GraylogMessage

java.lang.Object
org.obrel.core.RelatedObject
de.esoco.lib.comm.GraylogMessage
Alle implementierten Schnittstellen:
org.obrel.core.Relatable

public class GraylogMessage extends org.obrel.core.RelatedObject
A data object that holds the informations for a Graylog message in the Graylog extended log format (GELF).
  • Verschachtelte Klassen - Übersicht

    Verschachtelte Klassen
    Modifizierer und Typ
    Klasse
    Beschreibung
    static enum 
    Enumeration of the RFC 5424 severity levels used by graylog.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final org.obrel.core.RelationType<String>
    Optional field: the name of the file in which the logging occurred.
    static final org.obrel.core.RelationType<Integer>
    Optional field: the line number of the file in which the logging occurred.
    static final org.obrel.core.RelationType<String>
    Optional field: a description of the origin that caused the generation of the log message.
    static final org.obrel.core.RelationType<String>
    The full log message.
    static final org.obrel.core.RelationType<String>
    The host sending the message.
    static final org.obrel.core.RelationType<GraylogMessage.Level>
    The severity level.
    static final org.obrel.core.RelationType<String>
    The short log message.
    static final org.obrel.core.RelationType<Long>
    The log timestamp in milliseconds.
    static final org.obrel.core.RelationType<String>
    The message format version.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    GraylogMessage(GraylogMessage.Level level, String shortMessage, String fullMessage)
    Creates a new instance.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Returns a string containing a JSON representation of this message.

    Von Klasse geerbte Methoden org.obrel.core.RelatedObject

    deleteRelation, get, getRelation, getRelations, notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, set, toString, transform, writeRelations

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Von Schnittstelle geerbte Methoden org.obrel.core.Relatable

    deleteRelation, deleteRelations, getAll, getOption, getRelationCount, getRelations, hasFlag, hasRelation, hasRelations, init, set, set, set, setOption, streamRelations
  • Felddetails

    • VERSION

      public static final org.obrel.core.RelationType<String> VERSION
      The message format version.
    • HOST

      public static final org.obrel.core.RelationType<String> HOST
      The host sending the message.
    • SHORT_MESSAGE

      public static final org.obrel.core.RelationType<String> SHORT_MESSAGE
      The short log message.
    • FULL_MESSAGE

      public static final org.obrel.core.RelationType<String> FULL_MESSAGE
      The full log message.
    • TIMESTAMP

      public static final org.obrel.core.RelationType<Long> TIMESTAMP
      The log timestamp in milliseconds.
    • LEVEL

      public static final org.obrel.core.RelationType<GraylogMessage.Level> LEVEL
      The severity level.
    • _FILE_NAME

      public static final org.obrel.core.RelationType<String> _FILE_NAME
      Optional field: the name of the file in which the logging occurred.
    • _LINE_NUMBER

      public static final org.obrel.core.RelationType<Integer> _LINE_NUMBER
      Optional field: the line number of the file in which the logging occurred.
    • _ORIGIN

      public static final org.obrel.core.RelationType<String> _ORIGIN
      Optional field: a description of the origin that caused the generation of the log message. This is typically something like a person, process, or system.
  • Konstruktordetails

    • GraylogMessage

      public GraylogMessage(GraylogMessage.Level level, String shortMessage, String fullMessage)
      Creates a new instance.
      Parameter:
      level - The severity level
      shortMessage - The short message
      fullMessage - The full message or NULL for none
  • Methodendetails

    • toJson

      public String toJson()
      Returns a string containing a JSON representation of this message.
      Gibt zurück:
      The JSON string for this message