Class ConsoleAPICalledEventArgs
Issued when console API was called.
public sealed record ConsoleAPICalledEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<ConsoleAPICalledEventArgs>
- Inheritance
-
EventArgsConsoleAPICalledEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
ConsoleAPICalledEventArgs(string, ImmutableArray<RemoteObject>, ExecutionContextId, Timestamp, StackTrace?, string?)
Issued when console API was called.
public ConsoleAPICalledEventArgs(string Type, ImmutableArray<RemoteObject> Args, ExecutionContextId ExecutionContextId, Timestamp Timestamp, StackTrace? StackTrace = null, string? Context = null)
Parameters
TypestringType of the call.
ArgsImmutableArray<RemoteObject>Call arguments.
ExecutionContextIdExecutionContextIdIdentifier of the context where the call was made.
TimestampTimestampCall timestamp.
StackTraceStackTraceStack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.
ContextstringConsole context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
Properties
Args
Call arguments.
public ImmutableArray<RemoteObject> Args { get; init; }
Property Value
Context
Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
public string? Context { get; init; }
Property Value
ExecutionContextId
Identifier of the context where the call was made.
public ExecutionContextId ExecutionContextId { get; init; }
Property Value
StackTrace
Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.
public StackTrace? StackTrace { get; init; }
Property Value
Timestamp
Call timestamp.
public Timestamp Timestamp { get; init; }
Property Value
Type
Type of the call.
public string Type { get; init; }