subsembly
  • Introduction
  • Getting Started
    • Overview
    • Substrate Essentials
    • CLI
      • subsembly init
      • subsembly compile
      • subsembly spec
  • Development
    • Runtime Development
    • Chain Specification
    • Runtime Execution
  • Modules
    • Core
      • System
      • Executive
      • Crypto
      • Log
    • Pre-built
      • Aura
      • Balances
      • Timestamp
      • TransactionPayment
  • Advanced
    • as-scale-codec
    • subsembly-core
    • Metadata
      • Dispatcher
  • Guides
    • Create Your First Subsembly Runtime
      • Set Up
      • Start the Node
      • PolkadotJS
    • Start Your Network
      • Prepare the Network
      • Launch Validator Nodes
      • Launch the Third Node
    • Create a New Module
      • Nicks Module
      • Launch the Node
      • PolkadotJs
Powered by GitBook
On this page
  • Overview
  • Examples

Was this helpful?

  1. Modules
  2. Core

Log

Logging module

Overview

Log module is used for displaying log messages to the host. The three types of messages are supported: info, warn and error. This module is defined in subsembly-core package and should be imported from it before using.

Examples

import {Log} from 'subsembly-core'

// log informing message
Log.info("Important message");

// log warning message
Log.warn("Warning!);

// log error message
Log.error("Error here!");
PreviousCryptoNextPre-built

Last updated 4 years ago

Was this helpful?