1.7.1 • Published 1 year ago

@infobiotech/js-logger v1.7.1

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

@infobiotech/js-logger

An helper static class to handle logging on JavaScript projects such as Node.js, React and React Native.

Installation

yarn add @infobiotech/js-logger

Or

npm install @infobiotech/js-logger

Basic usage

import logger from '@infobiotech/js-logger';

// other imports...

// Initialize the logger with application-wide log level
logger.init({
  logLevel: logger.INFO,
});

// for each container, set the name and the log level
const logContainerName = 'App';
logger.setLogLevel(log.INFO, logContainerName);

logger.info(logContainerName, 'methodName', 'message', {
  // data keys to be logged
});
1.7.1

1 year ago

1.2.0

2 years ago

1.1.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.0.0

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago