Menu

class: Logger

[31:14] (extern: com.aussom.aussomscript.ALogger) extends: object

The aussom engine object.

Methods

  • setLevel (string Level)

    Sets the log level to one of these values. (TRC, DBG, INFO, WARN, ERR)

    • @p Level is a string with the log level.
    • @r this object
  • registerOnLog (callback OnLog)

    Sets the on log callback. The function definition is onLog(string value).

    • @p OnLog is a string with the message to log.
    • @r this object
  • registerOnTrc (callback OnLog)

    Sets the on trace callback. The function definition is onLog(string value).

    • @p OnLog is a string with the message to log.
    • @r this object
  • registerOnDbg (callback OnLog)

    Sets the on debug callback. The function definition is onLog(string value).

    • @p OnLog is a string with the message to log.
    • @r this object
  • registerOnInfo (callback OnLog)

    Sets the on info callback. The function definition is onLog(string value).

    • @p OnLog is a string with the message to log.
    • @r this object
  • registerOnWarn (callback OnLog)

    Sets the on warning callback. The function definition is onLog(string value).

    • @p OnLog is a string with the message to log.
    • @r this object
  • registerOnErr (callback OnLog)

    Sets the on error callback. The function definition is onLog(string value).

    • @p OnLog is a string with the message to log.
    • @r this object
  • registerOnPrint (callback OnLog)

    Sets the on print callback. The function definition is onLog(string value).

    • @p OnLog is a string with the message to log.
    • @r this object
  • registerOnPrintln (callback OnLog)

    Sets the on println callback. The function definition is onLog(string value).

    • @p OnLog is a string with the message to log.
    • @r this object

class: Engine

[4:14] (extern: com.aussom.aussomscript.AEngine) extends: object

The aussom engine object.

Methods

  • runString (string FileName, string Script, list Args, bool loadScripts = true)

    Runs the provided script strign and returns an int with 0 for success.

    • @p FileName is a string with the file name to give for this script.
    • @p Script is a string with the script to run.
    • @p Args is a list of args to pass to main().
    • @p Optional arg that defines if the engine will look for and load included aussom script files from the page. Default true.
    • @r An int with the return value. 0 is success.
  • registerLogger (object Lgr)

    Registers the provided Logger object to use for logging. You may also supply a null value to deregister an existing logger.

    • @p Lgr is a Logger object to register or null.
    • @r this object