Function to add standard logging methods to an object's prototype.
| Parameter | Type | Description |
|---|---|---|
| targetObject | Object | Object whose prototype should be extended with logging methods. |
Example usage:
Adds logging methods to every scene controller:
Mojo.Log.addLoggingMethodsToPrototype(Mojo.Controller.SceneController);
Allowing you to access logging from scene assistants:
this.controller.info("Welcome to the dollhouse.");







0 Comments