Commit Graph

9 Commits (master)

Author SHA1 Message Date
Kebler Network System Administrator 2bb6b65e63 fix: warning about passed level property
refactor!: passed arguments separated into bindings and options
feat: bound properties under meta: key in log
feat: pino key of options argument for pino settings
feat: in dev/pretty can (un)hide properties
feat: add a unique id to each log line (can be loaded by nedb and such)
feat: locate method to easily add line number and file to a log line

BREAKING CHANGE: logger/pino options in second separate argument from bindings
2021-07-31 08:48:47 -07:00
Kebler Network System Administrator e776937738 0.1.0
move to native esm
simplify custom filter function
2021-04-24 09:10:02 -07:00
David Kebler e9cee9bcd3 0.0.16
prepend pino prettty within the logger with a pretty filter pre processor
adds easier filtering of log properties (default) and filtering based on location/where properties
support a new env variable UCI_LOG_PRETTY  with options like terse,verbose,where
2019-11-21 10:03:51 -08:00
David Kebler c2638ea4c1 0.0.15 Got some testing going for console output, Log/pretty output can now control which properties get displayed via .ignnore and new property .include. improved the scripts in package.json and updated and cleaned all dependencies. 2019-08-10 15:04:13 -07:00
David Kebler 72adfffbeb added
.default value,
.clear method (does nothing yet)
.div method adds a divider using console log but only on output to console.
.lvlset  a method to set the level that doesn't get called if logging is disabled which turns on logging.
wrapped all the prelim stuff in enabled valued so it doesn't get called with logger is disabled.
2019-02-05 18:09:26 -08:00
David Kebler 893f88b20d Moved so single main environment variable UCI_ENV
now checks for development and production.
Production will write a file to default location if none given
Example can be run in numerous ways from npm scripts
add readme.md documenatation.
need to add mocha tests
2019-02-04 19:22:05 -08:00
David Kebler c244b470f3 0.0.7 2019-01-25 19:31:45 -08:00
David Kebler 7f23316c4e update dependencies 2019-01-25 12:36:40 -08:00
David Kebler 78e6df7db5 added example for testing 2019-01-01 19:42:25 -08:00