Mouette.js

An open source logger written in Typescript.

About

The purpose of this library is to provide a simple and easy to use logger.

Check Code section for more information on how to use Mouette.js.

You can help develop Mouette.js on Github.

Code

Javascript (main.js)

Instantiate a Logger class and creates a log.

Mouette.Logger.prototype.level = 'info';

Mouette.Logger.info(window);

function traceExample(){
  Mouette.Logger.trace(window);
}
traceExample();

function warnExample(){
  Mouette.Logger.warn(window);
}
warnExample();

function errorExample(){
  Mouette.Logger.error(window);
}
errorExample();

Contact me

Feel free to ask me about my work, give me suggestions, or just to say hi.