Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | system.logIsEnabled SEARCH    

  Functions
alert
log
system.battery.ACLineStatus
system.battery.LifePercent
system.beep
system.clipboard.clear
system.clipboard.get.format
system.clipboard.get.image
system.clipboard.get.text
system.clipboard.set.image
system.clipboard.set.text
system.createUniqueId
system.dialog
system.doEvents
system.execute
system.explore
system.getColors
system.getComputerId
system.getComputerName
system.getMemoryInfo
system.getUserName
system.ignoreCriticalErrors
system.language
system.lastError
system.logIsEnabled
system.message
system.mioEngine.countInstances
system.mioEngine.filename
system.mioEngine.version
system.openURL
system.os
system.platform
system.priority
system.userIsAdmin
system.winapi.errorMsg
system.winapi.lastError
system._hidden
system._showInTaskBar

  Events
event.error
event.exception
event.memoryFull
event.screen:resolution:change
event.system:desktop:changed
event.system:display:changed

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
system.logIsEnabled

Language: MioScript
Product: MioFactory


Syntax

system.logIsEnabled()


Parameters

None.


Return value

Returns true if log is enabled, false otherwise.



Description

This function returns true if log is enabled, false otherwise.

You can call the log function if the log is disabled as the function will simply be ignored. You should check if log is enabled if you have to build the information to be sent to the log file, so your application will run faster when log is disabled.

To retrieve if log is enabled from JavaScript: logIsEnabled.

Note: This function is defined in the library klib.k and is linked automatically.




MioScript Sample Code

if(system.logIsEnabled() == true)
    log("TITLE", "Hello World!")
if.end