# @p4d/socket-logs

> General logging for socket.io

Latest version **1.0.1** (published 2017-11-14) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install @p4d/socket-logs
pnpm add @p4d/socket-logs
yarn add @p4d/socket-logs
bun add @p4d/socket-logs
```

## 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.1 |
| Published | 2017-11-14 |
| First published | 2017-11-14 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brian Ail |
| Maintainers | javougarte, shipupi, tmigone, p4d-owner |
| Keywords | socket.io |

## Links

- npm: https://www.npmjs.com/package/@p4d/socket-logs
- npm.io page: https://npm.io/package/@p4d/socket-logs

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-11-14
- 1.0.0 — 2017-11-14

## README

# Socket Logs

## Description

Small NPM package that receives a socket io connection instance and prints on the console generic data about the connection, errors, and disconnects

## Installation

```bash
npm install --save @p4d/socket-logs
```

## Usage
### Require package
```javascript
	const socketLogs = require('@p4d/socket-logs')
```
### Create hermes object
```javascript

var io = socketio.listen(config.socket.port)
io.on('connection', (socket) => {
	socketLogs.start(socket)
})

```

## Future updates

Logs are currently printed on the console, may be worth exploring logging to a specific file or somewhere else

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