Logchain
Logging secured by blockchain
Logs get chained
The current log line contains the signature of the previous line with your secret.
- detect lines deleted / lost
- detect logs tampering
Philosophy
The package is intended to be a lightweight util for generating incorruptible logs.
For this pupose we rely as much as possible on standard packages: few dependencies, high quality.
The formatters are easy extensible by simply deriving from Basic
.
Usage
Install
npm install node-logchain
Choose your log type
Init once in main
Use everywhere with standard logging
Check your logs integrity afterwards
Contributing
Install
The code is hosted on Gitlab
Simply clone and submit pull requests.
Testing
The unit tests are located along with the sources and discovered by jest
.
# Run all
npm test
Releasing
The process is triggered by a tag added to a commit. The tag must match the pattern release_<VERSION>
and VERSION
has to comply to semver.
A CI/CD job handles the new tag event and publishes the package to npmjs.