
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@shagital/adonisjs-logger-slack
Advanced tools
Version [for Adonis v4]
This service provider adds Slack as a driver to Adonis Logger.
This repo is based from https://github.com/pirmax/adonis-logger-rollbar
npm install @shagital/adonisjs-logger-slack
yarn add @shagital/adonisjs-logger-slack
adonis install @shagital/adonisjs-logger-slack
Make sure to register the provider inside start/app.js
file.
const providers = [
'@shagital/adonisjs-logger-slack/providers/SlackProvider'
]
Add new configuration inside logger
module in config/app.js
:
transport: 'slack'
slack: {
name: Env.get('APP_NAME', 'adonis-app'),
driver: 'slack',
webhookUrl: Env.get('SLACK_WEBHOOK_URL'),
level: 'info',
appStart : false, // whether to create log when app is starting
logEnv : false // should send env variables when logging
}
That's it! Now you can use Logger that will send data to Slack.
const Logger = use('Logger')
Logger.info('Test message')
Logger.info('Test message', {user}) // to log extra details
Logger.transport('slack').info('this will log using the slack transport') // to specify the transport manually
Slack
driver relies on single Env variable: SLACK_WEBHOOK_URL=
.
FAQs
Slack driver for Adonis Logger
We found that @shagital/adonisjs-logger-slack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.