@sfd-br/logger

Logger Utilitário do SFD.

Usage no npm install needed!

<script type="module">
  import sfdBrLogger from 'https://cdn.skypack.dev/@sfd-br/logger';
</script>

README

Utility SFD Logger

This will print a log, showing file, function, line and column.

Install

$ npm i -S @sfd-br/logger

Doc

  function(level='debug', name='sfd', appRoot=__dirname);

Example

    // loading global logger
    global.logger = require('@sfd-br/logger')('debug', 'sfd-dlt-gateway', __dirname);
    logger.error("Some Error Log");
    logger.info("Some Info Log");

License

SFD