{{+bindTo:partials.standard_nacl_api}}
<h1>PPB_Console Struct Reference</h1>
<div id="doxygen-ref">
{{- dummy div to appease doxygen -}}
<div>
<!-- Generated by Doxygen 1.7.6.1 -->
</div>
<!--header-->
<div class="contents">
<!-- doxytag: class="PPB_Console" --><h2>
Data Fields</h2><table class="memberdecls">
<tr><td class="memItemLeft" align="right" valign="top">void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p_b___console__1__0.html#ae54272123735f49c8d7eb09cb2e1e368">Log</a> )(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, <a class="el" href="group___enums.html#gac39067c0883ec80b94290dd2a3bae440">PP_LogLevel</a> level, struct <a class="el" href="struct_p_p___var.html">PP_Var</a> value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p_b___console__1__0.html#a87a75566f5b86ebb6e2b7bf529d6ade1">LogWithSource</a> )(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, <a class="el" href="group___enums.html#gac39067c0883ec80b94290dd2a3bae440">PP_LogLevel</a> level, struct <a class="el" href="struct_p_p___var.html">PP_Var</a> source, struct <a class="el" href="struct_p_p___var.html">PP_Var</a> value)</td></tr>
</table>
<hr /><h2>Field Documentation</h2>
<a class="anchor" id="ae54272123735f49c8d7eb09cb2e1e368"></a><!-- doxytag: member="PPB_Console::Log" ref="ae54272123735f49c8d7eb09cb2e1e368" args=")(PP_Instance instance, PP_LogLevel level, struct PP_Var value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* <a class="el" href="struct_p_p_b___console__1__0.html#ae54272123735f49c8d7eb09cb2e1e368">PPB_Console::Log</a>)(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, <a class="el" href="group___enums.html#gac39067c0883ec80b94290dd2a3bae440">PP_LogLevel</a> level, struct <a class="el" href="struct_p_p___var.html">PP_Var</a> value)</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Logs the given message to the JavaScript console associated with the given plugin instance with the given logging level. </p>
<p>The name of the plugin issuing the log message will be automatically prepended to the message. The value may be any type of Var. </p>
</div>
</div>
<a class="anchor" id="a87a75566f5b86ebb6e2b7bf529d6ade1"></a><!-- doxytag: member="PPB_Console::LogWithSource" ref="a87a75566f5b86ebb6e2b7bf529d6ade1" args=")(PP_Instance instance, PP_LogLevel level, struct PP_Var source, struct PP_Var value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* <a class="el" href="struct_p_p_b___console__1__0.html#a87a75566f5b86ebb6e2b7bf529d6ade1">PPB_Console::LogWithSource</a>)(<a class="el" href="group___typedefs.html#ga89b662403e6a687bb914b80114c0d19d">PP_Instance</a> instance, <a class="el" href="group___enums.html#gac39067c0883ec80b94290dd2a3bae440">PP_LogLevel</a> level, struct <a class="el" href="struct_p_p___var.html">PP_Var</a> source, struct <a class="el" href="struct_p_p___var.html">PP_Var</a> value)</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Logs a message to the console with the given source information rather than using the internal PPAPI plugin name. </p>
<p>The name must be a string var.</p>
<p>The regular log function will automatically prepend the name of your plugin to the message as the "source" of the message. Some plugins may wish to override this. For example, if your plugin is a Python interpreter, you would want log messages to contain the source .py file doing the log statement rather than have "python" show up in the console. </p>
</div>
</div>
<hr />The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="ppb__console_8h.html">ppb_console.h</a></li>
</ul>
</div><!-- contents -->
</div>
{{/partials.standard_nacl_api}}