New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shagital/adonisjs-logger-quill

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shagital/adonisjs-logger-quill

Quill driver for Adonis Logger

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Adonis Logger Quill Quill icon

npm npm (scoped) NPM

Version [for Adonis v4]

This service provider adds Quill as a driver to Adonis Logger.

This repo is based from https://github.com/pirmax/adonis-logger-rollbar

Usage

Installation

  • You can install the package via NPM: npm install @shagital/adonisjs-logger-quill
  • Or with yarn: yarn add @shagital/adonisjs-logger-quill
  • Or with adonis: adonis install @shagital/adonisjs-logger-quill

Registering provider

Make sure to register the provider inside start/app.js file.

const providers = [
  '@shagital/adonisjs-logger-quill/providers/QuillProvider'
]

Add new configuration inside logger module in config/app.js:

transport: 'quill'

/*
      |--------------------------------------------------------------------------
     | Quill Transport
     |--------------------------------------------------------------------------
     |
     | Quill transport uses axios to send log data to quill channel
     |
     |
     |
     */
    quill: {
      name: Env.get('APP_NAME', 'adonis-app'),
      driver: 'quill',
      webhookUrl: Env.get('QUILL_WEBHOOK_URL'),
      level: 'info',
      appStart: false, // whether to create log when app is starting,
      logEnv: false // should send env variables
    }

That's it! Now you can use Logger that will send data to Rollbar.

const Logger = use('Logger')

Logger.info('Test message')
Logger.info('Test message', {user}) // to log extra details
Logger.transport('quill').info('this will log using the quill transport') // to specify the transport manually

Env variables

Quill driver relies on single Env variable: QUILL_WEBHOOK_URL=.

Keywords

FAQs

Package last updated on 26 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc