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

express-requests-loggly

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-requests-loggly

Log Express requests (including those with errors) to Loggly.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

express-requests-loggly Build Status NPM version Dependency Status

Log Express requests (including those with errors) to Loggly.

Installation

Install using npm:

npm install express-requests-loggly

API Reference

##class: LogglyRequestLogger ⏏ Members

###new LogglyRequestLogger(settings) Create a new request logger.

Params

  • settings Object
    • client loggly.Client

Returns: LogglyRequestLogger
Example

var logger = new LogglyRequestLogger({
  client: loggly.createClient({
    token: 'KEY',
    subdomain: 'SUBDOMAIN',
    json: true
  })
});

###express-requests-loggly.requestHandler() Capture and log express requests.

Returns: function - returns express middleware
Example

app.use(logger.requestHandler());

###express-requests-loggly.errorHandler() Add errors to req.error before logging.

Returns: function - reutrns express error handler middleware
Example

app
  .use(logger.requestHandler())
  .use(app.router)
  .use(logger.errorHandler())
  .use(express.errorHandler());

Contributing

Please submit all issues and pull requests to the BuildingConnected/express-requests-loggly repository!

Tasks

List available tasks with gulp help.

Tests

Run tests using npm test or gulp test.

Support

If you have any problem or suggestion please open an issue here.

FAQs

Package last updated on 12 Feb 2015

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