Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | path.log SEARCH    

  Functions
path.app
path.cookies
path.desktop
path.favorites
path.getSystemFolder
path.history
path.install
path.log
path.other
path.personal
path.programFiles
path.programs
path.recent
path.rsc
path.startMenu
path.startup
path.system
path.temp
path.windows

  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
path.log

Language: MioScript
Product: MioFactory


Syntax

path.log(productID, filename)


Parameters

IDproductIDOptional.
Product ID.
Default value is the current application Id ({APP_ID}).
STRINGfilenameOptional.
Name of the file to be added at then end of the path.


Return value

Folder where the application log is created, or null.



Description

Returns the folder where the log file and error reports are created.

If the application is installed on the computer, the log file is created in the application folder.
The value returned by log.path is the same than path.install

If the application is not installed on the computer, the log file is created in the temporary folder (path.temp).

Log can be enabled or disabled from MioFactory.

If log is disabled, and the application is not started from MioFactory, the function returns null.

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




MioScript Sample Code

&logFile = path.log(null, "log.htm")