0.0.1 • Published 2 years ago

@the-hw-app/logger v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@the-hw-app/logger

Installation

Yarn (Recommended)

$ yarn add @the-hw-app/logger

NPM

$ npm install @the-hw-app/logger

Scripts

Test

test will run the tests.

yarn test

Prepare

prepare will run both BEFORE the package is packed and published, and on local npm install. Perfect for running building the code.

yarn prepare

PrepublishOnly

prepublishOnly will run BEFORE prepare and ONLY on npm publish. Here we will run our test and lint to make sure we don’t publish bad code

yarn prepublishOnly

Preversion

preversion will run before bumping a new package version. To be extra sure that we’re not bumping a version with bad code

yarn preversion

Version

version will run after a new version has been bumped. If your package has a git repository, like in our case, a commit and a new version-tag will be made every time you bump a new version. This command will run BEFORE the commit is made. One idea is to run the formatter here and so no ugly code will pass into the new version

yarn version

Postversion

postversion will run after the commit has been made. A perfect place for pushing the commit as well as the tag.

yarn postversion

Usage

Build

$ yarn build

Note: If you want to build on change (watch mode) use yarn build -w

Experiment

The best way to experiment is by writing testing testing cases and running them.

Test

$ yarn test

or

$ yarn test [file_name]

Log Levels

CodeSeverityDescription
0Emergencysystem is unusable
1Alertaction must be taken immediately
2Criticalcritical conditions
3Errorerror conditions
4Warningwarning conditions
5Noticenormal but significant condition
6Informationalinformational messages
7Debugdebug-level messages

As stated in RFC 5424.

0.0.1

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago