Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.05 KB

en_log.md

File metadata and controls

44 lines (28 loc) · 1.05 KB

Overview

A log allows to display messages from the code on a screen.

Initialisation

The log is initialisated after the log plugin is on. The element is created

in the DOM

Message displaying

The key tools is a button by default to display messages. When you press the button the next events happen:

  • log displaying
  • boards changing
  • log hiding

Plugin's methods

The log's object is situated in the object SB.utils.log

  1. SB.utils.log.log(msg, logName) window.$$log(msg, logName)

Вывод сообщения msg в панели лога logName. msg message displaying in the log's board logName 2) show(logName)

The displaying of the log's board logName 3) hide()

Log hiding.

  1. state( msg, state, logName )

The displaying of the message in the state log's board logName State is displayed belowe the log's board by default

Example of the usage: The displaying of the current playing time 5) startProfile( profileName ); stopProfile: function ( profileName )

Profiling functions. Display a result on the profiler board.