For example, in Chrome PNaCl applications, access to host environmental vars is completely restricted. Thus all logging code in those applications are effectively dead code.
It would be great if I could enable logging by, for example, adding a DOM attribute (which turns into an argument provide to the PPP_InstanceCreated callback) of the module before it's attached to the DOM (thereby creating the instance). Also, note PPP_InstanceCreated is not where rust-ppapi initializes std, so this needs to allow users to set the desired filter value after initialization. Doesn't need to be thread-safe, but should probably include a warning label.
This represents a nice-to-have feature.
For example, in Chrome PNaCl applications, access to host environmental vars is completely restricted. Thus all logging code in those applications are effectively dead code.
It would be great if I could enable logging by, for example, adding a DOM attribute (which turns into an argument provide to the PPP_InstanceCreated callback) of the module before it's attached to the DOM (thereby creating the instance). Also, note PPP_InstanceCreated is not where
rust-ppapiinitializes std, so this needs to allow users to set the desired filter value after initialization. Doesn't need to be thread-safe, but should probably include a warning label.This represents a nice-to-have feature.