How to use the modern-logger.info function in modern-logger

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((channel) => {
        return Logger.info(`Started finding dates in ${_.capitalize(channel.name)} channel`)
          .then(() => findByChannel.bind(this)(channel))
          .finally(() => Logger.info(`Finished finding dates in ${_.capitalize(channel.name)} channel`))
      })
  }
github hfreire / get-me-a-date / src / dates / dates.js View on Github external
find (channelNames = []) {
    const startDate = _.now()

    Logger.info('Started finding dates')

    const updateStats = () => {
      return Logger.info('Started updating stats')
        .then(() => Stats.update())
        .finally(() => Logger.info('Finished updating stats'))
    }

    return Database.channels.findAll()
      .mapSeries(({ name, isEnabled }) => {
        if ((_.isEmpty(channelNames) && !isEnabled) ||
          (!_.isEmpty(channelNames) && !_.includes(channelNames, name))) {
          return
        }

        return this.findByChannelName(name)
      })
github hfreire / get-me-a-date / src / dates / dates.js View on Github external
        .finally(() => Logger.info('Finished updating stats'))
    }
github hfreire / get-me-a-date / src / dates / dates.js View on Github external
const updateStats = () => {
      return Logger.info('Started updating stats')
        .then(() => Stats.update())
        .finally(() => Logger.info('Finished updating stats'))
    }
github hfreire / get-me-a-date / src / dates / recommendation / recommendation.js View on Github external
.then((match) => {
            return Logger.info(`${recommendation.name} got a like :+1:(photos = ${recommendation.photosSimilarityMean}%)`)
              .then(() => {
                recommendation.isLike = true

                if (!match) {
                  return recommendation
                }

                return this.setUpMatch(recommendation, match)
              })
          })
      })

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