ym.core.Loggable

Overview

The loggable class is a virtual class. It extends a given class with logging methods by calling ym.util.debug.attach().

Initialization

function MyLogging() {
    ym.util.debug.attach("MyClass", this, true|false);
}

var instance = new MyLogging();
instance.log("hello, world!");
// Developer Tool Output
// => MyClass: hello, world!

Methods

deprecated(component, link, expirationDate) ab v3

Writes a message in the developer tool that informs about an obsolete component.

Parameters

Name Description Data type Default value
component The component that is marked as obsolete. function  
link The link to the documentation of the new or changed component. string  
expirationDate The date on which the component is removed. date  

error(args) ab v3

Writes an error message in the developer tool.

Parameters

Name Description Data type Default value
args Several arguments and data types are possible.    

info(args) ab v3

Writes a message in the developer tool.

Parameter

Name Description Data type Default value
args Several arguments and data types are possible.    

log(args) ab v3

Makes a log entry in the developer tool.

Parameter

Name Description Data type Default value
args Several arguments and data types are possible.    

notify(msg) ab v3

Writes a notification in the developer tool.

Parameter

Name Description Data type Default value
msg Notification string  

warn(args) ab v3

Writes a warning in the developer tool.

Parameter

Name Description Data type Default value
args Several arguments and data types are possible.