1.0.27 • Published 8 months ago
coadmin-lib v1.0.27
Coadmin Project Libraries
CoadminService Class
const { CoadminService } = require('coadmin-lib')
const coadmin_service = new CoadminService('ServiceName')
coadmin_service.report('started')
while(true) {
coadmin_service.report_every(1,'loop',false,true)
}
coadmin_service.report('finished')
coadmin_service.report_error('exception')CoadminService3 Class
import { CoadminService3 } from 'coadmin-lib'
const coadmin_service = new CoadminService3('ServiceName')
coadmin_service.report('started')typescript
import { ReportIssues } from 'coadmin-lib'
// live mode
const riLive = new ReportIssues('demoLive',{
live: true,
server: 'http://127.0.0.1:9091/api',
server_path: '/socket2.io',
output: true
})
riLive.warning('test warning')
// passive mode
const riPassive = new ReportIssues('demoPassive',{live: false, folder: '/var/coadmin'})
riPassive.warning('test warning')ReportIssues Class
use description to describe the issue but without using too many variables inside the description, you can put extra parameters as json, third parameter is for options: 'expireAfter' (in minutes)
const ReportIssues = new (require('coadmin-lib').ReportIssues)('AppName')
``
ReportIssues.info('info level description',{extra:'extra info'})
ReportIssues.warning('warn level description',{extra:'extra info'},{ expireAfter:10 })
ReportIssues.fatal('fatal level description',{extra:'extra info'})
ReportIssues.error('error level description',{extra:'extra info'})NetworkingTests Class
Mysql2Tests Class
Mysql1Tests Class
1.0.26
8 months ago
1.0.25
9 months ago
1.0.24
9 months ago
1.0.27
8 months ago
1.0.22
9 months ago
1.0.21
9 months ago
1.0.20
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.11
2 years ago
1.0.12
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.10
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 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