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

bunyan-logzio-simple

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

bunyan-logzio-simple

> Simple Logz.io stream for Bunyan

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

bunyan-logzio

Simple Logz.io stream for Bunyan

This project was bootstrapped with @pizzahut-hut/create-typescript-package.

Installation

yarn i bunyan-logzio --save

Pre-requisites

  • A valid token from Logz.io

Usage

import { createLogger } from 'browser-bunyan';
import LogzIOBunyanStream from 'bunyan-logzio';

const LOGZIO_ACCESS_TOKEN = 'my-logzio-access-token';

const logger = createLogger({
  name: 'bunyan-logzio-example',
  stream: [
    ...
    {
      name: 'logz.io',
      stream: new LogzIOBunyanStream({accessToken: LOGZIO_ACCESS_TOKEN}),
      level: 'info',
    }
    ...
  ]
})

logger.info('hello world');

Note:

Depending on the project this is being used on, you can invoke the library two other ways:

  • import LogzIOBunyanStream from 'bunyan-logzio/legacy';
  • import LogzIOBunyanStream from 'bunyan-logzio/src';

Available Scripts

In the project directory, you can run:

yarn lint

Lints src and test files

yarn test

Launches the test runner, pass --watch for interactive mode

yarn typecheck

Typecheck src and test files

yarn build

Compiles the package to lib ready for publish

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

FAQs

Package last updated on 07 Oct 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