2.5.4 • Published 5 years ago
@unsc/fir v2.5.4
🌲 fir
Tired of complicated logging? Me too.
For small projects the current popular loggers are absurdley complex and verbose.
That's why I made fir. To be small yet powerful.
install
npm install --save @unsc/fir
log
An example using the default format.
fir.log("Hey welcome to Fir.");
// Fir: Hey welcome to Fir.
format
If you wish to format log messages:
fir.format(message => `example: ${message}`);
The callback
will be sent the log message.
Return your formatted message and it will be applied at runtime.
save
If you want to save log messages:
fir.save("latest.log");
contribute
Pull requests are encouraged.