Class SystemLog


  • public class SystemLog
    extends java.lang.Object
    Holds a System-Log line.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SystemLog.Level  
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemLog​(java.time.ZonedDateTime time, SystemLog.Level level, java.lang.String source, java.lang.String message)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SystemLog fromJsonObject​(com.google.gson.JsonObject j)
      Parses a JSON-Object to a SystemLog.
      static SystemLog fromPaxLoggingEvent​(org.ops4j.pax.logging.spi.PaxLoggingEvent event)
      Creates a SystemLog object from a PaxLoggingEvent.
      com.google.gson.JsonObject toJson()
      Returns the SystemLog as a JSON Object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemLog

        public SystemLog​(java.time.ZonedDateTime time,
                         SystemLog.Level level,
                         java.lang.String source,
                         java.lang.String message)
    • Method Detail

      • fromPaxLoggingEvent

        public static SystemLog fromPaxLoggingEvent​(org.ops4j.pax.logging.spi.PaxLoggingEvent event)
        Creates a SystemLog object from a PaxLoggingEvent.
        Parameters:
        event - the PaxLoggingEvent
        Returns:
        the SystemLog object
      • toJson

        public com.google.gson.JsonObject toJson()
        Returns the SystemLog as a JSON Object.
         {
           "time": date,
           "level": string,
           "source": string,
           "message": string
         }
         
        Returns:
        SystemLog as a JSON Object