Class Entry

A single log entry.

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(level: Level, message: string, opt_timestamp?: number, opt_type?: string): Entry

constructor

Parameters

  • level: Level

    The entry level.

  • message: string

    The log message.

  • opt_timestamp?: number optional

    The time this entry was generated, in milliseconds since 0:00:00, January 1, 1970 UTC. If omitted, the current time will be used.

  • opt_type?: string optional

    The log type, if known.

Returns

Entry

constructor(level: string, message: string, opt_timestamp?: number, opt_type?: string): Entry

Parameters

  • level: string
  • message: string
  • opt_timestamp?: number optional
  • opt_type?: string optional

Returns

Entry

Properties

public level: Level

type

{!webdriver.logging.Level}

public message: string

type

{string}

public timestamp: number

type

{number}

public type: string

type

{string}

Methods

public toJSON(): Level

Returns

Level

{{level: string, message: string, timestamp: number, type: string}} The JSON representation of this entry.