Log Method



 
The Log method creates a logfile entry.


Syntax

    SiteCafe.Server.Logging.Log(function, level, category, message)
    
Parameters
    function String that is free but should specify the name of the caller function (for debugging).
    level Long value that specifies the level.
    category Long value that specifies the category.
    message String that specifies the message to write.
Return Value
    None.
Remarks
    Possible levels are:

    0 : ExtraDebug
    10 : Debug
    20 : Info
    30 : Warning
    40 : Error
    50 : FatalError

    Possible categories are:

    1 : General
    2 : Network
    3 : Database
    4 : FileIO
Examples
    The following example writes a warning message to the logfile.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe.Server.Logging.Log("function", 30, 0, "Warning msg");
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top