Coder Social home page Coder Social logo

loopback-bunyan-logger's Introduction

loopback-bunyan-logger

updated {loopback-component-logger}

**incase if you dont want the child node logs. please use the version ^1.1.2 of loopback-bunyan-looger.

Logging component for loopback using bunyan logger with additional loopback specific hooks and log management API

NPM NPM

Build Status Greenkeeper badge

Features

  • Default logger using bunyan
  • Can use of custom bunyan streams to create root logger
  • Hook: Basic performance instrumentation for remote execution
  • Hook: Log management API (configurable)

Usage

Example server.js:

var loopback = require('loopback');
var boot = require('loopback-boot');
var rootlogger = bunyan.createlogger({name: 'myloopbackAPI'});
var logger = require('loopback-bunyan-logger')(rootlogger);
var app = module.exports = loopback();

If rootlogger is not provide, the component creates a logger with default bunyan settings:

var loopback = require('loopback');
var boot = require('loopback-boot');
var logger = require('loopback-bunyan-logger')();
var app = module.exports = loopback();

Child loggers can be created for model as shown below. By default child loggers inherit the log level from root.

var logger = require('loopback-bunyan-logger')('TestModel');
module.exports = function(TestModel) {
    logger.debug('Initializing TestModel');
};

To add hooks and log management API to loopback, add configuration to component-config.json:

{
  "loopback-component-explorer": {
    "mountPath": "/explorer"
  },
  "loopback-bunyan-logger": {
      "enableAPI" : true
  }
}

Make sure enableHttpContext is set as true in config.json for to allow collection of datasources performance within req/res If you dont want expand the child nodes please use version @1.1.2

License

GNU

Create Issue

Create issue here here

Roadmap

  • Additional Unit Test and Coverage
  • Integrate with Strongloop Devops tools

Known Issue

  • datasources performance will not recorded at times when loopback context is null. Noticed this issue when a composite called MongoDB followed by REST. Only MongoDB response time was recorded and REST was missing.

See Also

loopback-bunyan-logger's People

Contributors

greenkeeper[bot] avatar saikatharryc avatar

Watchers

 avatar

loopback-bunyan-logger's Issues

An in-range update of loopback-datasource-juggler is breaking the build 🚨

The devDependency loopback-datasource-juggler was updated from 4.6.2 to 4.6.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

loopback-datasource-juggler is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 8 commits.

  • 8831242 4.6.3
  • 6793be2 Merge pull request #1728 from strongloop/chore/add-node-12
  • 5c3405e Add support for Node.js 12.x
  • 47addd9 Merge pull request #1702 from strongloop/fix/nested-property-resolution
  • 48af738 fix: coerce primitive properties on update
  • 1534392 fix: coerce date array properties
  • fe83f3c Merge pull request #1581 from spurreiter/include-crashes
  • 55b10a4 fix: normalize include with boolean or number

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of loopback-connector-mongodb is breaking the build 🚨

The devDependency loopback-connector-mongodb was updated from 4.1.0 to 4.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

loopback-connector-mongodb is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 13 commits.

  • 3a79606 4.2.0
  • 84651b9 Merge pull request #513 from strongloop/fix/nested-decimal-coercion-logic
  • 25122e0 fix: edge cases to coerce nested decimal props
  • c95fe01 Merge pull request #510 from strongloop/test/strict-model-extendedops
  • 6fcfa30 test: strict model update with mongo operators
  • f67d1e5 Merge pull request #508 from strongloop/copyrights
  • 58e8f7c chore: update copyrights years
  • 92c97cf Merge pull request #507 from mitsos1os/undefined-converted-to-null-506
  • 97bb9b3 add check for embedded property type conversion
  • cf10c6b Merge pull request #497 from jareeve/mongodb-srv
  • 869ddd7 Remove port when using mongodb+srv
  • 6e3e702 Merge pull request #505 from strongloop/fix/failing-test-cases
  • 20212e9 ci: fix previously failing tests

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of loopback-component-explorer is breaking the build 🚨

The devDependency loopback-component-explorer was updated from 6.3.1 to 6.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

loopback-component-explorer is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 15 commits.

  • c3e503c 6.4.0
  • ae5c6be Merge pull request #261 from strongloop/copyrights
  • c4f5b14 chore: update copyrights years
  • 4abaa30 Merge pull request #260 from strongloop/eol
  • 45b51a7 update README for LTS status
  • b83d0c2 Merge pull request #259 from pktippa/master
  • df43c00 Updated README with small code fix.
  • 8274f2b Merge pull request #258 from strongloop/update/dependency-lodash
  • 72316ac fix: update lodash
  • 79fbea1 Merge pull request #255 from strongloop/prevent-upgrade-to-swagger-ui-3
  • 02cfb55 Prevent accidental upgrades to swagger-ui v3+
  • 34f8b79 Merge pull request #257 from strongloop/update-eslint-again
  • 87dec34 Update eslint & config to latest major versions
  • 94b12fb Merge pull request #256 from strongloop/update-eslint
  • ca4a996 Update eslint & config to latest

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of jshint is breaking the build 🚨

The devDependency jshint was updated from 2.10.2 to 2.10.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

jshint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for JSHint 2.10.3

2.10.3 (2019-11-04)

Bug Fixes

  • Allow more escapes with RegExp u flag (5ac5c46)
  • Correct binding power of AwaitExpression (af04b1e)
  • Correct interpretation of commas (691dbdc)
  • Correct restrictions on class method names (f670aeb)
  • Correctly interpret class method names (82b49c4)
  • Do not crash on invalid program code (b14acca)
  • Interpret "object rest" ident as a binding (c0e9a5b)
  • Relax singleGroups for async functions (c5dcd90)
  • Tolerate static as class method name (9cb3b20)
  • Tolerate valid assignments (0a60c9e)
  • Validate lone arrow function parameter (38285cd)
Commits

The new version differs by 36 commits.

  • c43f4ad v2.10.3
  • 38285cd [[FIX]] Validate lone arrow function parameter
  • 691dbdc [[FIX]] Correct interpretation of commas
  • e63dbc7 [[CHORE]] Revert parser improvements
  • d72ce61 [[CHORE]] Improve test coverage for logical NOT
  • d015657 [[CHORE]] Remove unused internal variable
  • c81bf3a [[CHORE]] Improve CI configuration (#3415)
  • 5a337a8 [[CHORE]] Optimize case clause tracking
  • 9cb3b20 [[FIX]] Tolerate static as class method name
  • b14acca [[FIX]] Do not crash on invalid program code
  • 2366c92 [[CHORE]] Improve test coverage for RegExp parsing
  • 5ac5c46 [[FIX]] Allow more escapes with RegExp u flag
  • 0a60c9e [[FIX]] Tolerate valid assignments
  • e04746b [[TEST]] Ignore "information" messages
  • a70304d [[TEST]] Do not interpret warning as error

There are 36 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of loopback-datasource-juggler is breaking the build 🚨

The devDependency loopback-datasource-juggler was updated from 4.14.0 to 4.15.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

loopback-datasource-juggler is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 5 commits.

  • f921a4f 4.15.0
  • 5578ab4 Merge pull request #1783 from frbuceta/fix/lb4-issue-3602
  • b9f0284 Fix generated string id's
  • b07bdfc Merge pull request #1791 from strongloop/ci/skip-ibmi-downstream
  • 28d457d Remove loopback-connector-ibmi from downstream

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of gulp is breaking the build 🚨

The devDependency gulp was updated from 4.0.1 to 4.0.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

gulp is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v4.0.2

Fix

Docs

  • Add notes about esm support (4091bd3) - Closes #2278
  • Fix the Negative Globs section & examples (3c66d95) - Closes #2297
  • Remove next tag from recipes (1693a11) - Closes #2277
  • Add default task wrappers to Watching Files examples to make runnable (d916276) - Closes #2322
  • Fix syntax error in lastRun API docs (ea52a92) - Closes #2315
  • Fix typo in Explaining Globs (5d81f42) - Closes #2326

Build

  • Add node 12 to Travis & Azure (b4b5a68)
Commits

The new version differs by 9 commits.

  • 069350a Release: 4.0.2
  • b4b5a68 Build: Add node 12 to Travis & Azure
  • 5667666 Fix: Bind src/dest/symlink to the gulp instance to support esm exports (ref standard-things/esm#797)
  • 4091bd3 Docs: Add notes about esm support (closes #2278)
  • 3c66d95 Docs: Fix the Negative Globs section & examples (closes #2297)
  • 1693a11 Docs: Remove next tag from recipes (closes #2277)
  • d916276 Docs: Add default task wrappers to Watching Files examples to make runnable (ref #2322)
  • ea52a92 Docs: Fix syntax error in lastRun API docs (closes #2315)
  • 5d81f42 Docs: Fix typo in Explaining Globs (#2326)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.