raymon_leon_custom_logger_winston
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

============================================= Library fixes / updates:

  1. update version in package.json E.g. "version": "1.0.20"

local testing 1.1) npm link raymon_leon_npmtest2

  1. tsc

PUBLISH TO NPM

  1. npm login
  2. npm run pub

============================================== USAGE (client side) typescript:

  1. npm install raymon_leon_npmtest2 1.1) npm update -- to get latest changes
  2. Create test.ts file as follows import testNPM from 'raymon_leon_npmtest2' testNPM();
  3. tsc
  4. node lib\testUsingRequireCommonJS_index.js ============================================== CustomLogger:

Usage:

  1. init.ts -- singleton import CustomDefaultLogger from "raymon_leon_custom_logger";

const logger = new CustomDefaultLogger(); export default logger;

============================================== 2) server.ts

import logger from "./init";

logger.info("..."); logger.debug("..."); logger.silly("..."); // etc ...

=============================================

Readme

Keywords

none

Package Sidebar

Install

npm i raymon_leon_custom_logger_winston

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

28.7 kB

Total Files

35

Last publish

Collaborators

  • raymon.leon