# remote-log

> Redirect console output to remote

Latest version **0.0.3** (published 2017-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install remote-log
pnpm add remote-log
yarn add remote-log
bun add remote-log
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-03-26 |
| First published | 2017-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kengo Nakatsuka |
| Maintainers | nak2k |

## Links

- npm: https://www.npmjs.com/package/remote-log
- Repository: https://github.com/nak2k/node-remote-log
- Issues: https://github.com/nak2k/node-remote-log/issues
- npm.io page: https://npm.io/package/remote-log

## Recent versions

- 0.0.3 (latest) — 2017-03-26
- 0.0.2 — 2017-03-25
- 0.0.1 — 2017-03-25

## README

# remote-log

Redirect console output to remote.

## Installation

```
npm i remote-log -S
```

## Usage

``` javascript
import { enableRemoteLog, disableRemoteLog } from 'remote-log';

enableRemoteLog();

console.log('Hello');

disableRemoteLog();
```

Run a TCP server on a remote server.

```
nc -kl PORT_NUMBER
```

Run the script with specifying the environment variable `REMOTE_LOG`.

```
REMOTE_LOG=YOUR.SERVER:PORT_NUMBER node app.js
```

## Using in AWS Lambda

``` javascript
import { remoteLogInLambda } from 'remote-log';

export function handler(event, context, callback) {
  callback = remoteLogInLambda(callback);

  // Do something.
}
```

## License

MIT

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