neon-js

neon-js

  • Docs
  • API
  • Examples
  • Changelog
  • Help

›Core Modules

Overview

  • API

Core Modules

  • Wallet
  • Transactions
  • RPC
  • Smart Contract
  • Utility
  • Constants
  • Settings
  • Logging

Plugin Modules

  • api
  • NEP5
  • NEP9
  • neon-domain

Logging

The logging module is exposed only as a named import :

import {logging} from '@cityofzion/neon-js'
logging.logger.setAll('info') // sets logging level of neon-js to 'info'
const apiLogger = logging.logger.getLogger('api') // gets the logger for the api package
apiLogger.setLevel('warn') // sets logging level only on the logger for the api package

All logs are piped towards stdout and stderr. Each named package within neon-js will have its own logger. The initial setting for all loggers is 'slient'.

← Settingsapi →
neon-js
Docs
Getting StartedGuidesAPI Reference
Community
Discord ChatNEO Reddit
More
NEOGitHubStar
City of Zion
Copyright © 2020 City of Zion