standard-log-syslog
TypeScript icon, indicating that this package has built-in type declarations

12.1.2 • Public • Published

standard-log-syslog

NPM version NPM downloads

Github NodeJS Codecov

Visual Studio Code

syslog plugin for standard-log

Usage

Typeically, you can create a reporter the logs to a file or to another service. Here, we do an example with the built-in console log reporter.

import { createSyslogFormatter } from 'standard-log-syslog'
import { createStandardLog, createConsoleLogReporter } from 'standard-log'

const reporter = createConsoleLogReporter({ formatter: createSyslogFormatter() })
const standardLog = createStandardLog({ reporters: [reporter] })

const log = standardLog.getLogger('some logger')
log.info('some log')

Readme

Keywords

none

Package Sidebar

Install

npm i standard-log-syslog

Weekly Downloads

0

Version

12.1.2

License

MIT

Unpacked Size

49 kB

Total Files

58

Last publish

Collaborators

  • unional