0.0.1 • Published 1 month ago

@dan28/nodelog v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Nodelog Service

This is a simple service that allows you to log messages to a file. It is intended to be used as a simple logging service for your applications.

Installation

  • Add module npm install @dan28/nodelog --save

Log an event

import { service as auditService } from "nodelog"

const auditLog: auditService.AuditLog = {

}
auditService.log(auditLog)

Get filtered logs

import { service as auditService } from "nodelog"

const auditLogFilter: auditService.AuditLogFilter = {

}
auditService.getLog(auditLogFilter)

As a client module

  • Add module npm install @dan28/nodelog --save

Log an event

import { client as auditClient } from "nodelog"

const auditLog: AuditLog = {

}
auditClient.log(auditLog)

Get filtered logs

import { client as auditClient } from "nodelog"

const auditLogFilter: auditClient.AuditLogFilter = {

}
auditClient.getLog(auditLogFilter)