Skip to content

Commit

Permalink
EranMes on behalf of EmmaSoderberg: Document the command for getting …
Browse files Browse the repository at this point in the history
…available log types.

r17617
  • Loading branch information
eranmes committed Jul 31, 2012
1 parent be7067e commit a2eb6e7
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,12 +1472,15 @@ def main():
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 log type, as defined in '
'[http://selenium.googlecode.com/svn/trunk/docs/api/'
'java/org/openqa/selenium/logging/LogType.html '
'LogType]. The log type must be provided.').
AddJsonParameter('type', '{string}', 'The [#Log_Type log type]. This must be provided.').
SetReturnType('{Array.<object>}', 'The list of [#Log_Entry_JSON_Object log entries].'))

resources.append(
SessionResource('/session/:sessionId/log/types').
Get('Get available log types.').
SetReturnType('{Array.<string>}', 'The list of available [#Log_Type log types].'))


logging.info('Generating %s', wiki_path)
f = open(wiki_path, 'w')
try:
Expand Down Expand Up @@ -1670,6 +1673,20 @@ def main():
|| OFF || No log messages. Used for configuration of logging. ||
</dd>
<dt>
==== Log Type ====
</dt>
<dd>
The table below lists common log types. Other log types, for instance, for
performance logging may also be available.
|| *Log Type* || *Description* ||
|| client || Logs from the client. ||
|| driver || Logs from the webdriver. ||
|| browser || Logs from the browser. ||
|| server || Logs from the server. ||
</dd>
<dt>
=== Proxy JSON Object ===
</dt>
Expand Down

0 comments on commit a2eb6e7

Please sign in to comment.