Package de.esoco.lib.comm
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
Modifizierer und TypKlasseBeschreibungstatic enum
Enumeration of the RFC 5424 severity levels used by graylog. -
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic 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
KonstruktorBeschreibungGraylogMessage
(GraylogMessage.Level level, String shortMessage, String fullMessage) Creates a new instance. -
Methodenübersicht
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
The message format version. -
HOST
The host sending the message. -
SHORT_MESSAGE
The short log message. -
FULL_MESSAGE
The full log message. -
TIMESTAMP
The log timestamp in milliseconds. -
LEVEL
The severity level. -
_FILE_NAME
Optional field: the name of the file in which the logging occurred. -
_LINE_NUMBER
Optional field: the line number of the file in which the logging occurred. -
_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
Creates a new instance.- Parameter:
level
- The severity levelshortMessage
- The short messagefullMessage
- The full message or NULL for none
-
-
Methodendetails
-
toJson
Returns a string containing a JSON representation of this message.- Gibt zurück:
- The JSON string for this message
-