2.9.1 • Published 5 years ago

@detach/fir v2.9.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

🌲 fir

npm.io npm.io npm.io npm.io

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

NameTypeDescription
wipeOnRunbooleanAutomatically clear the log file on startup.
appendToFilestringPath to file in which lines should be saved.
formatterCallableFunctionReturn a formatted log line.

contribute

Pull requests are encouraged.

2.9.1

5 years ago

2.9.0

5 years ago

2.8.6

5 years ago

2.7.5

5 years ago

2.7.4

5 years ago

2.7.3

5 years ago

2.7.2

5 years ago

2.7.1

5 years ago

2.7.0

5 years ago

2.6.0

5 years ago

2.5.9

5 years ago

2.5.8

5 years ago

2.5.7

5 years ago

2.5.6

5 years ago

2.5.5

5 years ago

2.5.4

5 years ago