1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
7 * This file defines the <code>PPB_Console</code> interface.
20 PP_LOGLEVEL_WARNING
= 2,
24 interface PPB_Console
{
26 * Logs the given message to the JavaScript console associated with the
27 * given plugin instance with the given logging level. The name of the plugin
28 * issuing the log message will be automatically prepended to the message.
29 * The value may be any type of Var.
32 [in] PP_Instance instance
,
33 [in] PP_LogLevel level
,
37 * Logs a message to the console with the given source information rather
38 * than using the internal PPAPI plugin name. The name must be a string var.
40 * The regular log function will automatically prepend the name of your
41 * plugin to the message as the "source" of the message. Some plugins may
42 * wish to override this. For example, if your plugin is a Python
43 * interpreter, you would want log messages to contain the source .py file
44 * doing the log statement rather than have "python" show up in the console.
47 [in] PP_Instance instance
,
48 [in] PP_LogLevel level
,