@xyo-network/base

Base util inspired by XYO

Usage no npm install needed!

<script type="module">
  import xyoNetworkBase from 'https://cdn.skypack.dev/@xyo-network/base';
</script>

README

logo

sdk-base-nodejs

MIT license Build Status Maintainability

A core util/logging library inspired by XYO.

Logging

You can access the logger from XyoBase or from an instance of IXyoLog. Logging levels are in the following order:

  • Error
  • Warning
  • Info (default)
  • Verbose
  • Debug
  • Silly

You can change the logging level for the console and for the log file by changing the environment vars: XYO_LOG (for logs), and XYO_CONSOLE (for console). The path and name of the log can be changed with the environment vars: XYO_LOG_PATH and XYO_LOG_NAME.