How to use modern-logger - 10 common examples

To help you get started, we’ve selected a few modern-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hfreire / get-me-a-date / src / dates / dates.js View on Github external
.then((channelRecommendations) => {
        received = _.size(channelRecommendations)

        return Logger.debug(`Got ${received} recommendations from ${_.capitalize(channel.name)}`)
          .then(() => Promise.map(channelRecommendations, (channelRecommendation) => {
            const { channelRecommendationId } = channelRecommendation

            return Recommendation.checkOut(channel, channelRecommendationId, channelRecommendation)
              .then(({ recommendation, like, pass }) => likePassOrWait(channel, recommendation, like, pass))
              .then((recommendation) => recommendation.save())
              .catch(AlreadyCheckedOutEarlierError, ({ recommendation }) => {
                skipped++

                return recommendation.save()
              })
              .catch(OutOfLikesError, () => {
                skipped++
              })
              .catch((error) => {
                failed++
github hfreire / get-me-a-date / src / routes / recommendations / get-recommendation.js View on Github external
.catch((error) => {
        Logger.error(error)

        reply(Boom.badImplementation(error.message, error))
      })
  }
github hfreire / get-me-a-date / src / server.js View on Github external
    .catch((error) => Logger.error(error))
    .finally(() => {
github hfreire / get-me-a-date / src / routes / settings / get-settings.js View on Github external
.catch((error) => {
        Logger.error(error)

        reply(Boom.badImplementation(error.message, error))
      })
  }
github hfreire / get-me-a-date / src / routes / stats.js View on Github external
.catch((error) => {
        Logger.error(error)

        reply(Boom.badImplementation(error.message, error))
      })
  }
github hfreire / get-me-a-date / src / routes / settings / delete-settings.js View on Github external
.catch((error) => {
        Logger.error(error)

        reply(Boom.badImplementation(error.message, error))
      })
  }
github hfreire / get-me-a-date / src / routes / recommendations / like-recommendation.js View on Github external
.catch((error) => {
        Logger.error(error)

        reply(Boom.badImplementation(error.message, error))
      })
  }
github hfreire / get-me-a-date / src / routes / settings / update-settings.js View on Github external
.catch((error) => {
        Logger.error(error)

        reply(Boom.badImplementation(error.message, error))
      })
  }
github hfreire / get-me-a-date / src / routes / recommendations / checkout-recommendation.js View on Github external
.catch((error) => {
        Logger.error(error)

        reply(Boom.badImplementation(error.message, error))
      })
  }

modern-logger

A modern logger built on top of Winston with native support for emojis and Rollbar

MIT
Latest version published 3 years ago

Package Health Score

39 / 100
Full package analysis

Similar packages