X-Git-Url: https://git.squeep.com/?p=squeep-logger-json-console;a=blobdiff_plain;f=README.md;fp=README.md;h=fc837aef3e20881d2f491a24970ca97da7340264;hp=0000000000000000000000000000000000000000;hb=229dafe0003708b9fad190b4c0fc68136efd4f8c;hpb=21506cf49b1d239d780b377651554dc868639477 diff --git a/README.md b/README.md new file mode 100644 index 0000000..fc837ae --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# @squeep/logger + +A simple logger class, which mostly just structures messages, data, and some metadata as JSON and spews it, by default, to Console. + +Supports basic scrubbing of well-defined sensitive data, and an extensible set of JSON replacer functions for common objects. + +Intended to be specific to Squeep Framework Applications, this module has opinions. + +## API + +Expects these fields in any log call: + +- `scope` - file:method +- `message` - text +- `data` - object +- any additional parameters are included as an array, but not scrubbed