Tungsten v0.1.0 Tungsten.CDP.Log View Source
Provides access to log entries.
Link to this section Summary
Link to this section Types
Link to this type
cdp_log_entry_type()
View Source
cdp_log_entry_type()
View Source
cdp_log_entry_type() :: %{
:source =>
:other
| :recommendation
| :intervention
| :violation
| :worker
| :deprecation
| :security
| :rendering
| :appcache
| :storage
| :network
| :javascript
| :xml,
:level => :error | :warning | :info | :verbose,
:text => String.t(),
:timestamp => Tungsten.CDP.Runtime.cdp_timestamp_type(),
optional(:url) => String.t(),
optional(:line_number) => integer(),
optional(:stack_trace) => Tungsten.CDP.Runtime.cdp_stack_trace_type(),
optional(:network_request_id) => Tungsten.CDP.Network.cdp_request_id_type(),
optional(:worker_id) => String.t(),
optional(:args) => [Tungsten.CDP.Runtime.cdp_remote_object_type()]
}
cdp_log_entry_type() :: %{
:source =>
:other
| :recommendation
| :intervention
| :violation
| :worker
| :deprecation
| :security
| :rendering
| :appcache
| :storage
| :network
| :javascript
| :xml,
:level => :error | :warning | :info | :verbose,
:text => String.t(),
:timestamp => Tungsten.CDP.Runtime.cdp_timestamp_type(),
optional(:url) => String.t(),
optional(:line_number) => integer(),
optional(:stack_trace) => Tungsten.CDP.Runtime.cdp_stack_trace_type(),
optional(:network_request_id) => Tungsten.CDP.Network.cdp_request_id_type(),
optional(:worker_id) => String.t(),
optional(:args) => [Tungsten.CDP.Runtime.cdp_remote_object_type()]
}
Log entry.
Link to this type
cdp_violation_setting_type() View Source
Violation configuration setting.
Link to this section Functions
Link to this function
clear(session, parameters \\ %{}, options \\ [])
View Source
clear(session, parameters \\ %{}, options \\ [])
View Source
clear(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
clear(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
Clears the log.
Link to this function
disable(session, parameters \\ %{}, options \\ [])
View Source
disable(session, parameters \\ %{}, options \\ [])
View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
Disables log domain, prevents further log entries from being reported to the client.
Link to this function
enable(session, parameters \\ %{}, options \\ [])
View Source
enable(session, parameters \\ %{}, options \\ [])
View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
Enables log domain, sends the entries collected so far to the client by means of the
entryAdded notification.
Link to this function
start_violations_report(session, parameters, options \\ [])
View Source
start_violations_report(session, parameters, options \\ [])
View Source
start_violations_report(
GenServer.server(),
%{config: [cdp_violation_setting_type()]},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
start_violations_report( GenServer.server(), %{config: [cdp_violation_setting_type()]}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
start violation reporting.
Link to this function
stop_violations_report(session, parameters \\ %{}, options \\ [])
View Source
stop_violations_report(session, parameters \\ %{}, options \\ [])
View Source
stop_violations_report(
GenServer.server(),
map(),
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
stop_violations_report( GenServer.server(), map(), Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Stop violation reporting.