| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Logger module abstraction for Nodejs. To provide the capability to log via a common pattern across the various projects. This can be extended to include DB logging, cloud-services, or other Node libraries.
The primary purpose of this library is to avoid situations where multiple projects are tightly coupled to any logging library that may need to be updated across all projects, or involve many code changes for method signature changes or deprecation, or be limited to Console logging vs persistent storage, etc.
npm i -S https://github.com/snaptech/logger.gitThis NPM package is also hosted at the following registry: https://snaptech.pkgs.visualstudio.com/_packaging/snaptech/npm/registry/
Typescript:
import * as logger from '@snaptech/logger';
import { default as logger } from '@snaptech/logger'Javascript:
const logger = require('logger');Common:
logger.info(...);
logger.trace(...);
logger.warn(...);
logger.debug(...);
logger.error(...);Lint if desired but remove the linting dependencies to reduce weight on downstream applications. Eslint was used for the build-out but the implementation here is outdated.
| Back | FazBrowse Home | New Git URL |