Class Log.LogEntry

    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      protected static long serialVersionUID
      For Object Serialization.
       
      Type Properties
      Modifier and Type Field
      RunTime.RemoteObject[] args
      Call arguments.
      String category
      [No Description Provided by Google]

      OPTIONAL
      String level
      Log entry severity.
      Integer lineNumber
      Line number in the resource.
      String networkRequestId
      Identifier of the network request associated with this entry.
      String source
      Log entry source.
      RunTime.StackTrace stackTrace
      JavaScript stack trace.
      String text
      Logged text.
      Number timestamp
      Timestamp when this entry was added.
      String url
      URL of the resource if known.
      String workerId
      Identifier of the worker associated with this entry.
    • Constructor Summary

      Constructors 
      Constructor Description
      LogEntry​(String source, String level, String text, String category, Number timestamp, String url, Integer lineNumber, RunTime.StackTrace stackTrace, String networkRequestId, String workerId, RunTime.RemoteObject[] args)
      Constructor
      LogEntry​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

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

      • LogEntry

        🡅  🡇     🗕  🗗  🗖
        public LogEntry​(java.lang.String source,
                        java.lang.String level,
                        java.lang.String text,
                        java.lang.String category,
                        java.lang.Number timestamp,
                        java.lang.String url,
                        java.lang.Integer lineNumber,
                        RunTime.StackTrace stackTrace,
                        java.lang.String networkRequestId,
                        java.lang.String workerId,
                        RunTime.RemoteObject[] args)
        Constructor
        Parameters:
        source - Log entry source.
        Acceptable Values: ["xml", "javascript", "network", "storage", "appcache", "rendering", "security", "deprecation", "worker", "violation", "intervention", "recommendation", "other"]
        level - Log entry severity.
        Acceptable Values: ["verbose", "info", "warning", "error"]
        text - Logged text.
        category - -
        Acceptable Values: ["cors"]
        OPTIONAL
        timestamp - Timestamp when this entry was added.
        url - URL of the resource if known.
        OPTIONAL
        lineNumber - Line number in the resource.
        OPTIONAL
        stackTrace - JavaScript stack trace.
        OPTIONAL
        networkRequestId - Identifier of the network request associated with this entry.
        OPTIONAL
        workerId - Identifier of the worker associated with this entry.
        OPTIONAL
        args - Call arguments.
        OPTIONAL
    • Method Detail

      • optionals

        🡅     🗕  🗗  🗖
        public boolean[] optionals()
        Description copied from class: BaseType
        Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding a JsonObject to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array position TRUE.

        NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
        Specified by:
        optionals in class BaseType
        Returns:
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.