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

@wddv/pino-aliyun-sls

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wddv/pino-aliyun-sls

pino-aliyun-sls is a Pino v7+ compatible transport to forward log events to Slack from a dedicated worker

0.1.4
latest
Source
npm
Version published
Maintainers
1
Created
Source

ESLint Node.js CI

NPM downloads

@wddv/pino-aliyun-sls

Fork by pino-slack-webhook

A Pino v7+ transport to send events to Aliyun SLS

Installation

npm install --save @wddv/pino-aliyun-sls

Usage

import pino from "pino";
import { PinoAliSLSOption } from "@wddv/pino-aliyun-sls";

const logOptions: PinoAliSLSOption = {
  accessKeyId: "xxx",
  secretAccessKey: "xxx",
  endpoint: "http://cn-hangzhou.log.aliyuncs.com",
  projectName: "xx",
  logStoreName: "xxx",
};

const logger = pino({
  transport: {
    target: "@wddv/pino-aliyun-sls",
    level: "info",
    options: logOptions,
  },
});

logger.info("test log!");

app.ts

Reference

Keywords

pino

FAQs

Package last updated on 26 Feb 2024

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