Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

logacious

Package Overview
Dependencies
Maintainers
14
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logacious

A node.js logger that outputs the filename and line number of where the logger is called

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
14
Created
Source

logacious

Logger with line numbers that can also send logs to syslog.

Example of the output:

[INFO] 2018-01-23 07:38:24.946 lib/migrations.js:25 "Migration successful"
[INFO] 2018-01-23 07:38:24.948 lib/cluster.js:59 "All initialization function successful."
[INFO] 2018-01-23 07:38:24.949 lib/cluster.js:65 "Starting workers" 3

Usage

const logger = require('logacious')()

logger.log('foo', new Error(), object)
logger.info('foo', new Error(), object)
logger.warn('foo', new Error(), object)
logger.error('foo', new Error(), object)

Environment variables

  • LOGACIOUS_SYSLOG: set it to disable console and redirect all logs to syslog.
  • LOGACIOUS_SYSLOG_TAG: cf. https://github.com/phuesler/ain
  • LOGACIOUS_SYSLOG_FACILITY: cf. https://github.com/phuesler/ain
  • LOGACIOUS_SYSLOG_HOSTNAME: cf. https://github.com/phuesler/ain
  • LOGACIOUS_SYSLOG_PORT: cf. https://github.com/phuesler/ain

Keywords

FAQs

Package last updated on 21 Jan 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