Constructor Summary
Public Constructor | ||
public |
constructor(id: String) Creates an instance of Logger |
Method Summary
Public Methods | ||
public |
Create a new instance of the Logger |
|
public |
enabled(enabled: Boolean=false) Enable or disable the console output |
|
public |
error() Wrapper for console.error |
|
public |
info() Wrapper for console.info |
|
public |
log() Wrapper for console.log |
|
public |
Used to give an identifier to the output |
|
public |
warn() Wrapper for console.warn |
Public Constructors
Public Methods
public create(id: *): Logger source
Create a new instance of the Logger
Params:
Name | Type | Attribute | Description |
id | * |
public enabled(enabled: Boolean=false) source
Enable or disable the console output
Params:
Name | Type | Attribute | Description |
enabled | Boolean=false |
|
Use true if you want the output to appear |