Logar is a simple node.js stdout logger.
npm install logar --save
Logar can be used like this:
Just require the package:
var logar = "MyApp" enableTimestamps;
"MyApp" will be used as keyword. You can leave this empty if you want. If you want to disable timestamps, pass 'false' as second argument.
Note: you can also use the LOGAR_KEYWORD environment variable to set the keyword.
These are the basic functions of Logar. They have colored output in the console.
logar; //ouput an info messagelogar; //log an errorlogar; //log a success messagelogar; //log a light messagelogar; //log a warninglogar; //create a new line
[16:44:37] MyApp: ✓ this is a success message
Logar also has a loading function. It can be used like this:
//create a loader instancevar loader = logar;//async call;