Skip to content

Commit

Permalink
EranMes on behalf of EmmaSoderberg: Document the get log command in t…
Browse files Browse the repository at this point in the history
…he wire protocol wiki.

r17370
  • Loading branch information
eranmes committed Jul 9, 2012
1 parent 987e1a6 commit 9c38122
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,15 @@ def main():
Get('Get the number of items in the storage.').
SetReturnType('{number}', 'The number of items in the storage.'))

resources.append(
SessionResource('/session/:sessionId/log').
Post('Get the log for a given log type. Log buffer is reset after each request.').
AddJsonParameter('type', '{string}', 'The type of the log as defined in '
'[http://selenium.googlecode.com/svn/trunk/docs/api/'
'java/org/openqa/selenium/logging/LogType.html '
'LogType]: `{DRIVER|PROFILER}. A log type must be provided.').
SetReturnType('{Array.<object>}', 'The list of [Log_Entry_JSON_Object log entries].'))

logging.info('Generating %s', wiki_path)
f = open(wiki_path, 'w')
try:
Expand Down Expand Up @@ -1523,6 +1532,18 @@ def main():
^1^ When returning Cookie objects, the server should only omit an optional \
field if it is incapable of providing the information.</dd>
<dt>
==== Log Entry JSON Object ====
</dt>
<dd>
A JSON object describing a log entry.
|| *Key* || *Type* || *Description* ||
|| timestamp || number || The timestamp of the entry. ||
|| level || number || The log level of the entry. ||
|| message || string || The log message. ||
</dd>
<dt>
=== Proxy JSON Object ===
</dt>
Expand Down

0 comments on commit 9c38122

Please sign in to comment.