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

@seek/splunk-logger

Package Overview
Dependencies
Maintainers
35
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seek/splunk-logger

Generates Splunk consumable logs in node 4.3.2 AWS Lambdas.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
35
Created
Source

Logger

Generates Splunk consumable logs in node 4.3.2 AWS Lambdas.

Install

npm install --save @seek/splunk-logger

Usage

Provides the usual error, warn, info, and debug

Log messages are formatted like this where the name component will only be used if given in the logger's constructor :

name=<name>, level=<level>, msg=<msg>

Kind: global class

new Logger([name], [level])

Create a logger

ParamTypeDefaultDescription
[name]stringOptional name to give the logger. This will be added to all log bodies.
[level]string"info"Optional minimum level to output. Defaults to info

logger.setLevel(level) ⇒ Logger

Set the minimum log level to output

Kind: instance method of Logger
Returns: Logger - this Logger instance

ParamTypeDescription
levelstringShould be one of error, warn, info, debug

logger.log(msg, level)

Emit a log message at the given level

Kind: instance method of Logger

ParamTypeDescription
msg*Thing to be logged. If given an object literal it will be appended to the log in the format <code>key1=value1, key2=value2</code>
levelstringlog level to be used in error, warn, info, debug. Defaults to info.

logger.error(msg)

Emit error level log

Kind: instance method of Logger

ParamTypeDescription
msg*Thing to be logged. See log

logger.warn(msg)

Emit warn level log

Kind: instance method of Logger

ParamTypeDescription
msg*Thing to be logged. See log

logger.info(msg)

Emit info level log

Kind: instance method of Logger

ParamTypeDescription
msg*Thing to be logged. See log

logger.debug(msg)

Emit debug level log

Kind: instance method of Logger

ParamTypeDescription
msg*Thing to be logged. See log

FAQs

Package last updated on 15 Jan 2017

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