This package has been deprecated

Author message:

this package has been deprecated

@detach/fir

2.9.1 • Public • Published

🌲 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

From NPM:
npm install @detach/fir

From GitHub (latest):
npm install 117/fir

example

fir.setOptions({
  appendToFile: "latest.log",
  formatter: function(message) {
    return `[myApp] ${message}`;
  }
});

fir.log("Hi there!");

The text [myApp] Hi there! will be logged to console and appended to the latest.log file.

options

Name Type Description
wipeOnRun boolean Automatically clear the log file on startup.
appendToFile string Path to file in which lines should be saved.
formatter CallableFunction Return a formatted log line.

contribute

Pull requests are encouraged.

/@detach/fir/

    Package Sidebar

    Install

    npm i @detach/fir

    Weekly Downloads

    3

    Version

    2.9.1

    License

    MIT

    Unpacked Size

    7 kB

    Total Files

    14

    Last publish

    Collaborators

    • npm