Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.23 KB

README.md

File metadata and controls

61 lines (44 loc) · 1.23 KB

@dulliag/logger.js

Node.js Package

Topics

Installation

  1. Create an .npmrc to download the package
@dulliag:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
  1. Install the package
    npm install @dulliag/logger.js
    Now you can use logger.js...

This package contains...

Credentials

import { Credentials } from '@dulliag/logger.js';

const credentials: Credentials = {
  host: 'HOST',
  user: 'USER',
  password: 'PASSWORD',
  database: 'DATABASE',
};

Client

import { Credentials, ClientOptions, Client } from '@dulliag/logger.js';

const credentials: Credentials = {
  host: 'HOST',
  user: 'USER',
  password: 'PASSWORD',
  database: 'DATABASE',
};

const options = {
  application: "APPLICATION
} as ClientOptions;

const client = new Client("PostgreSQL" /* type of Database */, credentials, options);
client.log("LOG", "TAG", "MESSAGE");