triton-audit-logger
This package is an adaptation of the restify audit logging plugin for use in Triton APIs. It adds a few features to the restify audit logger. See the top comment in lib/audit-logger.js for details. (This started with the restify v4 audit logger, so it is possible that current restify versions do some of the same things.)
(This repository is part of the Joyent Triton project. See the contribution guidelines -- Triton does not use GitHub PRs -- and general documentation at the main Triton project page.)
Usage
Reasonably minimal usage (see examples/hello-world.js):
var tritonAuditLogger = ;var bunyan = ;var restify = ; var NAME = 'hello-world';var log = bunyan;var server = restify; server;
Suggested starter usage for Triton APIs:
server;
An example showing usage of most of the configuration options
(see the createAuditLogHandler
comment for option docs):
server;
Development
Commiting
Before commit, ensure that the following passes:
make fmt check
You can setup a local git pre-commit hook that'll do that by running
make git-hooks
Also see the note at the top that https://cr.joyent.us is used for code review for this repo.
Releasing
Changes with possible user impact should:
-
Add a note to the changelog.
-
Bump the package version appropriately (major for breaking changes, minor for new features, patch for bug fixes).
-
Once merged to master, the new version should be tagged and published to npm via:
make cutarelease
To list to npm accounts that have publish access:
npm owner ls $packageName