2.9.1 • Published 6 years ago

@detach/fir v2.9.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 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

6 years ago

2.9.0

6 years ago

2.8.6

6 years ago

2.7.5

6 years ago

2.7.4

6 years ago

2.7.3

6 years ago

2.7.2

6 years ago

2.7.1

6 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.9

6 years ago

2.5.8

6 years ago

2.5.7

6 years ago

2.5.6

6 years ago

2.5.5

6 years ago

2.5.4

6 years ago