DefaultLogger: Logger = defaultLogger

The default logger - this should be the main top level logger used in scripts

This logger defaults to log level 'debug' and is named 'default'. For client scripts, it logs to the browser console (not NS execution log because it incurs significant overhead). For server-side scripts it logs to the NS Exectuion Log.

Example

To make a client script log to both the local browser console and the NS script execution log

import * as LogManager from "./NFT/EC_Logger"

LogManager.addAppender(new LogManager.ExecutionLogAppender())

Example

import * as LogManager from "./NFT/EC_Logger"
const log = LogManager.DefaultLogger
log.debug('hello world')

Generated using TypeDoc