System Runtime

System Runtime

  • Languages iconENGLISH
    • Română
    • Help Translate
  • SUPPORT
  • GITHUB

›APIS

Introduction

  • What is System Runtime ?
  • System Runtime architecture
  • What is Design First ?
  • Overview

Guides

  • Quick Start
  • How to install System Runtime
  • Design your model
  • Create components
  • Manage your components
  • Bundle your system
  • Extend System Runtime
  • Go deeper

Examples

  • A basic "hello world"
  • Create a bundle
  • Install a bundle client-side
  • Install a bundle in HTML
  • Install a bundle server-side
  • Package a bundle
  • Create a component
  • Create new types
  • Create a one to one relationship
  • Create a one to many relationship
  • Navigate through the model
  • Inheritance between components
  • Listen to a change of state of a component
  • Use System Runtime NoSQL Database
  • Object-Document Mapper in action
  • Use System Runtime core apis
  • Use System Runtime history apis
  • Quick Start example

APIS

  • Component Class
  • runtime Component
  • metamodel Component
  • logger Component
  • db Component
  • history Component
  • Document Collection

About

  • Who is behind System Runtime ?
  • License

logger Component

debug( message )

  • Description: Log an information.
  • Schema: _Logger
  • Inherit: _Component
runtime.require('logger').debug('this is a debug message');

// will show in the console:
// > runtime: this is a debug message

error( message )

  • Description: Log an error.
  • Schema: _Logger
  • Inherit: _Component
runtime.require('logger').error('this is an error message');

// will show in the console:
// > runtime: this is an error message

info( message )

  • Description: Log an information.
  • Schema: _Logger
  • Inherit: _Component
runtime.require('logger').info('this is an info message');

// will show in the console:
// > runtime: this is an info message

level( levelName )

  • Description: Set the level of log. Possible values are: debug, info, warn and error. By default the level is set to warn.
  • Schema: _Logger
  • Inherit: _Component
runtime.require('logger').level('info');

// now all `info`, `warn` and `error` logs will be shown.

warn( message )

  • Description: Log a warning.
  • Schema: _Logger
  • Inherit: _Component
runtime.require('logger').warn('this is a warning message');

// will show in the console:
// > runtime: this is a warning message
← metamodel Componentdb Component →
  • debug( message )
  • error( message )
  • info( message )
  • level( levelName )
  • warn( message )
System Runtime is distributed under Apache License 2.0 - Copyright © 2024 Erwan Carriou