1.0.27 • Published 5 months ago

coadmin-lib v1.0.27

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

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

5 months ago

1.0.25

5 months ago

1.0.24

5 months ago

1.0.27

5 months ago

1.0.22

5 months ago

1.0.21

5 months ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.11

1 year ago

1.0.12

1 year 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