Pepper_31_C_interfaces
Public Attributes | List of all members
PPB_Console_1_0 Struct Reference

#include <ppb_console.h>

Collaboration diagram for PPB_Console_1_0:
Collaboration graph

Public Attributes

void(* Log )(PP_Instance instance, PP_LogLevel level, struct PP_Var value)
 
void(* LogWithSource )(PP_Instance instance, PP_LogLevel level, struct PP_Var source, struct PP_Var value)
 

Detailed Description

Definition at line 45 of file ppb_console.h.

Member Data Documentation

void(* PPB_Console_1_0::Log)(PP_Instance instance, PP_LogLevel level, struct PP_Var value)

Logs the given message to the JavaScript console associated with the given plugin instance with the given logging level. The name of the plugin issuing the log message will be automatically prepended to the message. The value may be any type of Var.

Definition at line 52 of file ppb_console.h.

void(* PPB_Console_1_0::LogWithSource)(PP_Instance instance, PP_LogLevel level, struct PP_Var source, struct PP_Var value)

Logs a message to the console with the given source information rather than using the internal PPAPI plugin name. The name must be a string var.

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.

Definition at line 63 of file ppb_console.h.


The documentation for this struct was generated from the following file: