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

@machinomy/logger

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@machinomy/logger

Machinomy Logger

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Machinomy Logger

Machinomy logger. Works in browser and Node.

Basic usage

import Logger from '@machinomy/logger'

const LOG = new Logger('your-namespace')

LOG.info('This is info message')
LOG.warn('This is warn message')
LOG.error('This is error message')
LOG.fatal('This is fatal message')
LOG.debug('This is debug message')
LOG.trace('This is trace message')

Usage with LogDNA

import Logger from '@machinomy/logger'

const LOG = new Logger(
    'your-namespace',
    'LogDNA-Ingestion-Key-As-String',    // Ingestion Key from "API Keys" section of LogDNA website
    { hostname: 'another-host' }         // Any LogDNA for Node.js constructor options
 )

LOG.info('This is info message')
LOG.warn('This is warn message')
LOG.error('This is error message')
LOG.fatal('This is fatal message')
LOG.debug('This is debug message')
LOG.trace('This is trace message')

For more LogDNA options see LogDNA for Node.js

DO NOT FORGET TO DEFINE "DEBUG=*" ENV VARIABLE!

IF YOU USE @machinomy/logger AT MULTIPLE LAYERS OF YOUR SOFTWARE - DO NOT FORGET TO DEFINE "DEBUG_DEPTH=10" ENV VARIABLE!

Web site: machinomy.com. Twitter: @machinomy. Support/Discussion: Gitter.

:exclamation: Please, pay attention, this package is the part of Machinomy Lerna Monorepo and it's intended to use with other monorepo's packages.

:no_entry: You should not git clone this repository alone

:white_check_mark: You should git clone the main repository via

git clone https://github.com/machinomy/machinomy.git
or 
git clone git@github.com:machinomy/machinomy.git

For documentation, usage and contributing please see Machinomy Monorepo.

FAQs

Package last updated on 14 Jan 2019

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