* Fetches available log entries for the given type. * * Note that log buffers are reset after each call, meaning that available * log entries correspond to those entries not yet returned for a given log * type. In practice, this means that this call will return the available log * ent
(type)
| 2463 | * type. |
| 2464 | */ |
| 2465 | get(type) { |
| 2466 | let cmd = new command.Command(command.Name.GET_LOG).setParameter('type', type) |
| 2467 | return this.driver_.execute(cmd).then(function (entries) { |
| 2468 | return entries.map(function (entry) { |
| 2469 | if (!(entry instanceof logging.Entry)) { |
| 2470 | return new logging.Entry(entry['level'], entry['message'], entry['timestamp'], entry['type']) |
| 2471 | } |
| 2472 | return entry |
| 2473 | }) |
| 2474 | }) |
| 2475 | } |
| 2476 | |
| 2477 | /** |
| 2478 | * Retrieves the log types available to this driver. |
nothing calls this directly
no test coverage detected