xinston

simple winston wrapper

Usage no npm install needed!

<script type="module">
  import xinston from 'https://cdn.skypack.dev/xinston';
</script>

README

xinston

simple winston wrapper

install

npm install xinston

how to code

simplest usage

const logger = require('xinston').Logger.get();

logger.error('error');
logger.warn('warninig');
logger.info('info');
logger.debug('debug');
const err = new Error('error!');
logger.debug(err);

use with service name

const { Logger } = require('xinston');
Logger.setServiceName('myservice');
const logger = Logger.get();

logger.error('error message');