Source

scope.bitbucket.org / scope / services / ConsoleLogger / ConsoleLogger_2_0.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>ConsoleLogger 2.0 &mdash; Scope Interface v1 documentation</title>
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <link rel="stylesheet" media="print" href="../../_static/print.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '1',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <link rel="copyright" title="Copyright" href="../../copyright.html" />
    <link rel="top" title="Scope Interface v1 documentation" href="../../index.html" />
    <link rel="up" title="ConsoleLogger" href="../ConsoleLogger.html" />
    <link rel="next" title="ConsoleLogger 2.1" href="ConsoleLogger_2_1.html" />
    <link rel="prev" title="ConsoleLogger" href="../ConsoleLogger.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="ConsoleLogger_2_1.html" title="ConsoleLogger 2.1"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="../ConsoleLogger.html" title="ConsoleLogger"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">Scope Interface v1 documentation</a> &raquo;</li>
          <li><a href="../ConsoleLogger.html" accesskey="U">ConsoleLogger</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="consolelogger-2-0">
<h1>ConsoleLogger 2.0<a class="headerlink" href="#consolelogger-2-0" title="Permalink to this headline"></a></h1>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Generated:</th><td class="field-body">hob rst-doc</td>
</tr>
<tr class="field"><th class="field-name">Version:</th><td class="field-body">2.0</td>
</tr>
<tr class="field"><th class="field-name">Status:</th><td class="field-body">Published</td>
</tr>
</tbody>
</table>
<div class="section" id="service">
<h2>Service<a class="headerlink" href="#service" title="Permalink to this headline"></a></h2>
<p>The <cite>console-logger</cite> is a noninteractive tool used to log
messages sent to Opera&#8217;s console.</p>
<p>All messages sent to the Opera console from the various
modules in Opera are captured and displayed.</p>
<div class="highlight-c"><div class="highlight"><pre><span class="n">service</span> <span class="n">ConsoleLogger</span>
<span class="p">{</span>
  <span class="n">option</span> <span class="p">(</span><span class="n">cpp_hfile</span><span class="p">)</span> <span class="o">=</span> <span class="s">&quot;modules/scope/src/scope_console_logger.h&quot;</span><span class="p">;</span>

  <span class="n">option</span> <span class="p">(</span><span class="n">version</span><span class="p">)</span>   <span class="o">=</span> <span class="s">&quot;2.0&quot;</span><span class="p">;</span>

  <span class="n">option</span> <span class="p">(</span><span class="n">cpp_class</span><span class="p">)</span> <span class="o">=</span> <span class="n">OpScopeConsoleLogger</span><span class="p">;</span>


  <span class="n">event</span>   <span class="n">OnConsoleMessage</span> <span class="n">returns</span> <span class="p">(</span><span class="n">ConsoleMessage</span><span class="p">)</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="events">
<h2>Events<a class="headerlink" href="#events" title="Permalink to this headline"></a></h2>
<div class="section" id="onconsolemessage">
<span id="index-0"></span><h3><tt class="docutils literal"><span class="pre">OnConsoleMessage</span></tt><a class="headerlink" href="#onconsolemessage" title="Permalink to this headline"></a></h3>
<div class="highlight-python"><pre>event OnConsoleMessage returns (ConsoleMessage) = 1;</pre>
</div>
<p>message:</p>
<div class="highlight-c" id="index-1"><div class="highlight"><pre><span class="n">message</span> <span class="n">ConsoleMessage</span>
<span class="p">{</span>
  <span class="cm">/**</span>
<span class="cm">   * The window ID is shared across scope. Notably, it&#39;s the same as in the ecmascript debugger.</span>
<span class="cm">   * INTERNAL: The value is from Window::id</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">windowID</span>    <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   *</span>
<span class="cm">   * The number of seconds since 1970-01-01T00:00:00Z.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">uint32</span> <span class="n">time</span>        <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * Description of the error. Sometimes this message only makes sense when</span>
<span class="cm">   * displayed in a monospace font.</span>
<span class="cm">   */</span>
  <span class="n">required</span> <span class="n">string</span> <span class="n">description</span> <span class="o">=</span> <span class="mi">3</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The URL of the entity (document, script, style file, etc) that caused the</span>
<span class="cm">   * message to be generated.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">uri</span>         <span class="o">=</span> <span class="mi">4</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The context in which the message was generated; it is intended for human</span>
<span class="cm">   * consumption and provides additional information about the context for the</span>
<span class="cm">   * message.</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">context</span>     <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * The component in Opera that generated the message</span>
<span class="cm">   * One of:</span>
<span class="cm">   * - &quot;ecmascript&quot;</span>
<span class="cm">   * - &quot;java&quot;</span>
<span class="cm">   * - &quot;m2&quot;</span>
<span class="cm">   * - &quot;network&quot;</span>
<span class="cm">   * - &quot;xml&quot;</span>
<span class="cm">   * - &quot;html&quot;</span>
<span class="cm">   * - &quot;css&quot;</span>
<span class="cm">   * - &quot;xslt&quot;</span>
<span class="cm">   * - &quot;svg&quot;</span>
<span class="cm">   * - &quot;bittorrent&quot;</span>
<span class="cm">   * - &quot;voice&quot;</span>
<span class="cm">   * - &quot;widget&quot;</span>
<span class="cm">   * - &quot;selftest&quot;</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">source</span>      <span class="o">=</span> <span class="mi">6</span><span class="p">;</span>
  <span class="cm">/**</span>
<span class="cm">   * One of:</span>
<span class="cm">   * - &quot;debug&quot;</span>
<span class="cm">   * - &quot;verbose&quot;</span>
<span class="cm">   * - &quot;information&quot;</span>
<span class="cm">   * - &quot;error&quot;</span>
<span class="cm">   * - &quot;critical&quot;</span>
<span class="cm">   */</span>
  <span class="n">optional</span> <span class="n">string</span> <span class="n">severity</span>    <span class="o">=</span> <span class="mi">7</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../../index.html">
              <img class="logo" src="../../_static/Opera-logo-PNG.png" alt="Logo"/>
            </a></p>
            <h3><a href="../../index.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference internal" href="#">ConsoleLogger 2.0</a><ul>
<li><a class="reference internal" href="#service">Service</a></li>
<li><a class="reference internal" href="#events">Events</a><ul>
<li><a class="reference internal" href="#onconsolemessage"><tt class="docutils literal"><span class="pre">OnConsoleMessage</span></tt></a></li>
</ul>
</li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="../ConsoleLogger.html"
                                  title="previous chapter">ConsoleLogger</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="ConsoleLogger_2_1.html"
                                  title="next chapter">ConsoleLogger 2.1</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../../_sources/services/ConsoleLogger/ConsoleLogger_2_0.txt"
                     rel="nofollow">Show Source</a></li>
             <li><a href="./pdf/ScopeInterface.pdf" rel="nofollow">Download as PDF</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="../../search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          
          <script type="text/javascript">$('#searchbox').show(0);</script>
          <h3><a href="glossary.html">Glossary</a></h3>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
    © Copyright 2006-2010, Opera Software ASA. 
    <a href="./index.html#license">Licensed under Apache License, Version 2.0.</a>
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.6.
    </div>
  </body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.