LogWeb V3 Default Emulator (AJAX based)

Class lw

Object
   |
   +--lw

class lw


The global lw Object. Primarily contains the basic logging utilities, such as log(), debug, showException(). Many sub-objects will be added by other include files.
Note: the standard logger function requires lw.JSON sub-object.
Defined in lw.js


Nested Class Summary
<static class> lw.Cookie
<static class> lw.Menu
<static class> lw.login
<static class> lw.env
 
Field Summary
<static>  {int} debug
          the current log level for the logger function used in log().
<static>  {Function} logger
          Holds the current log routine called in log().
 
Constructor Summary
lw ()
            The global lw Object.
 
Method Summary
<static> String clean(<String> str)
           In the specified String, replaces all control chars (< ASCII 32) by SPACE
<static> StringArray extractKeys(obj)
           from the specified Object, extracs all keys.
<static> void log(<String> text, <Object> obj)
           Log the specified text and object.
<static> void log1(<String> str, <Object> obj)
           logs errors1 only
<static> void log2(<String> str, <Object> obj)
           logs errors1, warnings2, and important2
<static> void log3(<String> str, <Object> obj)
           logs errors1, warnings2, important2, and detail3
<static> void log4(<String> str, <Object> obj)
           logs errors1, warnings2, important2, detail3, and test4
<static> void log5(<String> str, <Object> obj)
           logs errors1, warnings2, important2, detail3, test4, and test5
<static> void logAlert(<String> text)
           Log routine: alerts the specified text.
<static> void logArea(<String> text)
           Log routine: Logs the specified String to TEXTAREA.
<static> void logNothing(<String> text)
           Empty log routine: does not log the specified text.
<static> String logText(<String> text)
           Helper for Log routine: Prepends time stamp to log text.
<static> void logWin(<String> text)
           Log routine: Logs the specified String in Browser Window "LWDebug".
<static> Node node(<String_Node> id)
           Returns the node for the specified id.
<static> boolean removeOption(<String_Node> node, <String> value)
           In the specified SELECT node, removes the OPTION with the specified VALUE.
<static> boolean selectOption(<String_Node> node, <String> value)
           In the specified SELECT node, selects the OPTION with the specified VALUE.
<static> Node setSelectOptions(<String_Node> node, <int> startIndex, <StringArray_Object> arrText, arrValue)
           In the specified SELECT node, removes existing OPTIONs and appends new OPTIONs.
<static> void showException(<Exception> myErr, <String> prefix)
           Shows an exception message caught in a try/catch statement.
<static> Object showOnerror(<String> msg, <String> url, <String> line)
           Callback from window.onerror: Alerts error message.
<static> String trim(<String> str, <boolean> clean)
           Removes all leading and trailing Spaces from the specified String.

Field Detail

debug

<static> {int} debug

logger

<static> {Function} logger

Constructor Detail

lw

lw()

Method Detail

clean

<static> String clean(<String> str)

extractKeys

<static> StringArray extractKeys(obj)

log

<static> void log(<String> text, <Object> obj)

log1

<static> void log1(<String> str, <Object> obj)

log2

<static> void log2(<String> str, <Object> obj)

log3

<static> void log3(<String> str, <Object> obj)

log4

<static> void log4(<String> str, <Object> obj)

log5

<static> void log5(<String> str, <Object> obj)

logAlert

<static> void logAlert(<String> text)

logArea

<static> void logArea(<String> text)

logNothing

<static> void logNothing(<String> text)

logText

<static> String logText(<String> text)

logWin

<static> void logWin(<String> text)

node

<static> Node node(<String_Node> id)

removeOption

<static> boolean removeOption(<String_Node> node, <String> value)

selectOption

<static> boolean selectOption(<String_Node> node, <String> value)

setSelectOptions

<static> Node setSelectOptions(<String_Node> node, <int> startIndex, <StringArray_Object> arrText, arrValue)

showException

<static> void showException(<Exception> myErr, <String> prefix)

showOnerror

<static> Object showOnerror(<String> msg, <String> url, <String> line)

trim

<static> String trim(<String> str, <boolean> clean)

LogWeb V3 Default Emulator (AJAX based)

Copyright © 2006-2012 by Logics Software GmbH
Documentation generated by JSDoc on Mon Mar 3 17:24:18 2014