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

      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​( 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. 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.
        event - the PaxLoggingEvent
        the SystemLog object
      • toJson

        public toJson()
        Returns the SystemLog as a JSON Object.
           "time": date,
           "level": string,
           "source": string,
           "message": string
        SystemLog as a JSON Object