1.0.7 • Published 3 years ago

procyon-logger v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Procyon Logger

This is npm module for quick integration with Procyon logger service. More info here - Procyon

Quick start

const Logger = require('./index')

const logger = new Logger('f7d6ea6c-878c-4f2d-942c-c381e4ac704a', 'test', true)

async function testSendLog() {
  const response = await logger.sendLog({ author: 'test author', message: 'test msg', type: 'info', data: { error: 'test error' }, send: true })
  console.log(response)
}
testSendLog()


async function testGetLogs() {
  const response = await logger.getLogs({ author: 'test author', type: 'info' })
  console.log(response.docs)
}
testGetLogs()
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago