Package Torello.Browser
Class Log.LogEntry
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Log.LogEntry
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Log
public static class Log.LogEntry extends BaseType implements java.io.Serializable
Log entry.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Log.java
- Open New Browser-Tab: Torello/Browser/Log.java
File Size: 8,343 Bytes Line Count: 212 '\n' Characters Found
-
-
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]
OPTIONALString
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)
ConstructorLogEntry(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
source
public final java.lang.String source
Log entry source.
-
level
public final java.lang.String level
Log entry severity.
-
text
public final java.lang.String text
Logged text.
-
category
public final java.lang.String category
[No Description Provided by Google]
OPTIONAL
-
timestamp
public final java.lang.Number timestamp
Timestamp when this entry was added.
-
url
public final java.lang.String url
URL of the resource if known.
OPTIONAL
-
lineNumber
public final java.lang.Integer lineNumber
Line number in the resource.
OPTIONAL
-
stackTrace
public final RunTime.StackTrace stackTrace
JavaScript stack trace.
OPTIONAL
-
networkRequestId
public final java.lang.String networkRequestId
Identifier of the network request associated with this entry.
OPTIONAL
-
workerId
public final java.lang.String workerId
Identifier of the worker associated with this entry.
OPTIONAL
-
args
public final RunTime.RemoteObject[] args
Call arguments.
OPTIONAL
-
-
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"]
OPTIONALtimestamp
- Timestamp when this entry was added.url
- URL of the resource if known.
OPTIONALlineNumber
- Line number in the resource.
OPTIONALstackTrace
- JavaScript stack trace.
OPTIONALnetworkRequestId
- Identifier of the network request associated with this entry.
OPTIONALworkerId
- Identifier of the worker associated with this entry.
OPTIONALargs
- Call arguments.
OPTIONAL
-
LogEntry
public LogEntry(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'LogEntry'
.
-
-
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 aJsonObject
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 positionTRUE
.
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...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; LogEntry o = (LogEntry) other; return Objects.equals(this.source, o.source) && Objects.equals(this.level, o.level) && Objects.equals(this.text, o.text) && Objects.equals(this.category, o.category) && Objects.equals(this.timestamp, o.timestamp) && Objects.equals(this.url, o.url) && Objects.equals(this.lineNumber, o.lineNumber) && Objects.equals(this.stackTrace, o.stackTrace) && Objects.equals(this.networkRequestId, o.networkRequestId) && Objects.equals(this.workerId, o.workerId) && Arrays.deepEquals(this.args, o.args);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.source) + Objects.hashCode(this.level) + Objects.hashCode(this.text) + Objects.hashCode(this.category) + Objects.hashCode(this.timestamp) + Objects.hashCode(this.url) + Objects.hashCode(this.lineNumber) + this.stackTrace.hashCode() + Objects.hashCode(this.networkRequestId) + Objects.hashCode(this.workerId) + Arrays.deepHashCode(this.args);
-
-