1.0.44 • Published 4 years ago
atma-server-monit v1.0.44
Deprecated. Renamed to everlog
.
Atma Server Monit
High-performance fs logging with buffering, file retention and thread safe.
- Simple Request and Error watcher - logs to fs and slack.
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[];
})
- Custom Event Streams
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
- web:
Prepair
> npm i
> cd www/
> npm i
Start Example(Dev Project for the viewer)
# 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
1.0.44
4 years ago
1.0.43
4 years ago
1.0.42
4 years ago
1.0.40
4 years ago
1.0.41
4 years ago
1.0.39
4 years ago
1.0.38
4 years ago
1.0.37
4 years ago
1.0.36
4 years ago
1.0.35
4 years ago
1.0.34
4 years ago
1.0.32
4 years ago
1.0.29
4 years ago
1.0.31
4 years ago
1.0.30
4 years ago
1.0.28
5 years ago
1.0.27
5 years ago
1.0.26
5 years ago
1.0.25
5 years ago
1.0.23
5 years ago
1.0.22
5 years ago
1.0.21
5 years ago
1.0.19
5 years ago
1.0.20
5 years ago
1.0.18
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.11
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago