# atma-server-monit

> CSV Streamed Logger for any case

Latest version **1.0.44** (published 2021-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install atma-server-monit
pnpm add atma-server-monit
yarn add atma-server-monit
bun add atma-server-monit
```

Provides the command `everlog`.

## 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.44 |
| Published | 2021-08-14 |
| First published | 2020-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 3.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alex Kit |
| Maintainers | tenbits |

## Links

- npm: https://www.npmjs.com/package/atma-server-monit
- Repository: https://github.com/atmajs/everlog
- Homepage: https://github.com/atmajs/everlog#readme
- Issues: https://github.com/atmajs/everlog/issues
- npm.io page: https://npm.io/package/atma-server-monit

## Dependencies (11)

- [alot](https://npm.io/package/alot.md) ^0.2.90
- [memd](https://npm.io/package/memd.md) ^0.2.84
- [ruta](https://npm.io/package/ruta.md) ^0.2.71
- [appcfg](https://npm.io/package/appcfg.md) ^0.4.53
- [atma-io](https://npm.io/package/atma-io.md) ^1.2.37
- [atma-utils](https://npm.io/package/atma-utils.md) ^0.1.37
- [class-json](https://npm.io/package/class-json.md) ^0.3.3
- [signal-exit](https://npm.io/package/signal-exit.md) ^3.0.2
- [@slack/web-api](https://npm.io/package/@slack/web-api.md) ^5.8.0
- [atma-formatter](https://npm.io/package/atma-formatter.md) ^0.8.15
- [express-basic-auth](https://npm.io/package/express-basic-auth.md) ^1.2.0

## Recent versions

- 1.0.44 (latest) — 2021-08-14
- 1.0.43 — 2021-08-14
- 1.0.42 — 2021-06-17
- 1.0.41 — 2021-05-26
- 1.0.40 — 2021-04-21
- 1.0.39 — 2021-04-16
- 1.0.38 — 2021-04-16
- 1.0.37 — 2021-04-16
- 1.0.36 — 2021-04-16
- 1.0.35 — 2021-04-14
- 1.0.34 — 2021-03-04
- 1.0.32 — 2021-02-28
- 1.0.31 — 2021-01-28
- 1.0.30 — 2021-01-27
- 1.0.29 — 2021-01-27
- … 27 more at https://npm.io/package/atma-server-monit/versions

## README

# Deprecated. Renamed to `everlog`.

Atma Server Monit
-----



<p align="center">
    <a href='https://travis-ci.com/atmajs/atma-server-monit' target='_blank'>
        <img src='https://api.travis-ci.com/atmajs/atma-server-monit.png?branch=master' />
        </a>
    <a href='http://badge.fury.io/js/atma-server-monit' target='_blank'>
        <img src='https://badge.fury.io/js/atma-server-monit.svg' />
        </a>
</p>

> High-performance fs logging with buffering, file retention and thread safe.

1. Simple Request and Error watcher - logs to fs and slack.

```ts
import { Monit } from 'atma-server-monit'

Monit.start(app.lifecycle, {
    directory: `./logs/`,
    slack: {
        token: '',
        channelId: ''
    },

    fileCountMax: 20,
    fileBytesMax: 500 * 1024;
    fileMessagesMax: 10 ** 7
    messageBufferMax: 50;
    columns: [] as ICsvColumn[];
})
```

2. Custom Event Streams

```ts
const channel = Monit.createChannel('foo', {
    columns: [
        { name: 'Title', filterable: true },
        { name: 'MyVal', type: 'number', sortable: true, groupable: true },
        { name: 'Timestamp', type: 'date', sortable: true, groupable: true },
    ]
});
channel.write(`Lorem ipsum, 123, ${Date.now()}`);
```

## Dev

### Core (`/src/`)

* Collects events from a server or from custom streams, and proceeds with persistence or further propagation (_slack_)
* Creates a subapp to view collected events

### Viewer (`/www/`)

SubApplication to view/sort/filter collected events

* Development endpoints (_unbuild source_):
    * web: `http://localhost:5777/atma/monit/index.dev.html`
    * api, e.g: `http://localhost:5777/atma/monit/api/logs/channels`


### Prepair

```sh
> npm i
> cd www/
> npm i
```

### Start Example(_Dev Project for the viewer_)

```sh
# builds core to be available for example as lib
> npm run watch

# starts demo server with Core and Viewer attached
> npm run example

# navigate to http://localhost:5777/atma/monit/index.dev.html
```

----
The MIT License

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