node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »



A simple named logger for typescript (based on the idea of ng2-logger)


Use the command npm install to install all the dependecies.

Then use the command gulp build in order to create the build.


var log = Log.create('Demo Component');'test info');
log.log('test log');
log.debug('test debug');
log.warn('test warning');
log.error('test error');


You can see a really simple demo on how to use it and how you will see the logs using the command npm run demo.

It will start a server and open the browser with a simple page, inspecting the console you will find the logs. If the browser does not open automaticaly go to http://localhost:8888.

In order to stop the server use Ctrl+c in the console.