MCPcopy Index your code
hub / github.com/tebeka/selenium / SetLogLevel

Method SetLogLevel

selenium.go:118–124  ·  view source on GitHub ↗

SetLogLevel sets the logging level of a component. It is a shortcut for passing a log.Capabilities instance to AddLogging.

(typ log.Type, level log.Level)

Source from the content-addressed store, hash-verified

116// SetLogLevel sets the logging level of a component. It is a shortcut for
117// passing a log.Capabilities instance to AddLogging.
118func (c Capabilities) SetLogLevel(typ log.Type, level log.Level) {
119 if _, ok := c[log.CapabilitiesKey]; !ok {
120 c[log.CapabilitiesKey] = make(log.Capabilities)
121 }
122 m := c[log.CapabilitiesKey].(log.Capabilities)
123 m[typ] = level
124}
125
126// Proxy specifies configuration for proxies in the browser. Set the key
127// "proxy" in Capabilities to an instance of this type.

Callers 1

testLogFunction · 0.80

Calls

no outgoing calls

Tested by 1

testLogFunction · 0.64