log

package
v0.0.0-...-da6a603 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 1 Imported by: 3

Documentation

Overview

Package log provides logging-related configuration types and constants.

Index

Constants

View Source
const CapabilitiesKey = "loggingPrefs"

CapabilitiesKey is the key for the logging preferences entry in the JSON structure representing WebDriver capabilities.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities map[Type]Level

Capability is the map to include in the WebDriver capabilities structure to configure logging.

type Level

type Level string

Level represents a logging level of different components in the browser, the driver, or any intermediary WebDriver servers.

See the documentation of each driver for what browser specific logging components are available.

const (
	Off     Level = "OFF"
	Severe  Level = "SEVERE"
	Warning Level = "WARNING"
	Info    Level = "INFO"
	Debug   Level = "DEBUG"
	All     Level = "ALL"
)

The valid log levels.

type Message

type Message struct {
	Timestamp time.Time
	Level     Level
	Message   string
}

Message is a log message returned from the Log method.

type Type

type Type string

Type represents a component capable of logging.

const (
	Server      Type = "server"
	Browser     Type = "browser"
	Client      Type = "client"
	Driver      Type = "driver"
	Performance Type = "performance"
	Profiler    Type = "profiler"
)

The valid log types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL