dastanaron-log-system-logger
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Dastanaron/log-system-logger

This is a package for logging your applications with the dastanaron/logging-system. Server logs are created for logging in json format, which is well suited for grabbers of this system

How it use

import { ServerLogger } from '@dastanaron/log-system-logger';

const logger = new ServerLogger('my-service-logger');

logger.info('info message', { foo: 'bar', bar: 'buz' });

try {
  someMethod();
} catch (e) {
  logger.error('Error of someMethod', {
    error: e.message,
    stack: e.stack,
  });
}

Readme

Keywords

none

Package Sidebar

Install

npm i dastanaron-log-system-logger

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

20.5 kB

Total Files

17

Last publish

Collaborators

  • dastanaron