New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

posix-syslog-appender

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posix-syslog-appender

log4js appender

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

posix-syslog-appender

An appender for printing log to syslog using log4js.

log4js を使って syslog に log を出力するための appender です。

Installation

$ npm install posix-syslog-appender --save

Example

import log4js from "log4js";

log4js.configure({
  levels: {
    NOTICE: { value: 21000, colour: "green" },
    CRIT: { value: 51000, colour: "magenta" },
    ALERT: { value: 52000, colour: "magenta" },
    EMERG: { value: 53000, colour: "magenta" },
  },
  appenders: {
    syslog: {
      type: "posix-syslog-appender",
      tag: "myApp",
      facility: "local0",
    },
  },
  categories: {
    development: {
      appenders: ["syslog"],
      level: "all",
    },
  },
});

const log = log4js.getLogger("development");

log.info("message for you.");

License

MIT

Keywords

log4js

FAQs

Package last updated on 08 May 2023

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