1.0.44 • Published 3 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
3 years ago
1.0.43
3 years ago
1.0.42
3 years ago
1.0.40
3 years ago
1.0.41
3 years ago
1.0.39
3 years ago
1.0.38
3 years ago
1.0.37
3 years ago
1.0.36
3 years ago
1.0.35
3 years ago
1.0.34
3 years ago
1.0.32
3 years ago
1.0.29
3 years ago
1.0.31
3 years ago
1.0.30
3 years ago
1.0.28
3 years ago
1.0.27
4 years ago
1.0.26
4 years ago
1.0.25
4 years ago
1.0.23
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.19
4 years ago
1.0.20
4 years ago
1.0.18
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.11
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago