# sumologic

> Sync Application logs to sumo logic directly via their http API

Latest version **1.0.2** (published 2017-01-24) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install sumologic
pnpm add sumologic
yarn add sumologic
bun add sumologic
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-01-24 |
| First published | 2016-03-27 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| Author | Jeeva Suresh |
| Maintainers | jeeva |
| Keywords | sumo, logic, sumo-logic, sumologic |

## Links

- npm: https://www.npmjs.com/package/sumologic
- Repository: https://github.com/helix-collective/node-sumologic
- Homepage: https://github.com/helix-collective/node-sumologic#readme
- Issues: https://github.com/helix-collective/node-sumologic/issues
- npm.io page: https://npm.io/package/sumologic

## Dependencies (2)

- [request](https://npm.io/package/request.md) 2.79.0
- [underscore](https://npm.io/package/underscore.md) 1.8.3

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-01-24
- 1.0.1 — 2017-01-24
- 1.0.0 — 2016-08-16
- 0.0.1 — 2016-03-27

## README

# node-sumologic

A well tested, drop-in replacement for console.log that syncs logs directly to Sumo Logic via their
HTTP api (as opposed to using their collectors)

## Installation
npm install sumologic

## Usage

```
var SumoLogger = require('sumologic')

// Optional opts
var opts = {
   request // wrapper around https://www.npmjs.com/package/request (useful for testing)
   endpoint // default https://collectors.au.sumologic.com/receiver/v1/http/, change again mostly to aid testing/debugging
   syncInterval // how often we should sync to sumo logic (default ever second)
};

var logger = new SumoLogger('SUMOLOGIC-HTTP-COLLECTOR-CODE' /*, opts */);

// optional - if you would like console.log to go to sumo logic
logger.replaceConsole()

// optional - if you would like console.log to go to sumo logic and stdout
logger.augmentConsole()

logger.log("Yeah, it worked");
```

---
_Source: https://npm.io/package/sumologic · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
