Telogis.GeoBase.Console |
Manages a diagnostic console for displaying messages about program execution and flow throughout the lifetime of the application.
Name | Description |
---|---|
error (String text) | Outputs a line of text to the console, prefixed by some standard warning flag defined by Console.ERROR_PREFIX. Arguments
|
getErrorCount () | Finds the number of error messages that have been printed to the console in the current session. ReturnsNumber - The error message count. |
getWarningCount () | Finds the number of warning messages that have been printed to the console in the current session. ReturnsNumber - The warning message count. |
off () | Prevents the console from displaying output. This remains in effect until Console.redirect or Console.on is next called. |
on () | Restores the callback the console was being used with before it was turned off. See Console.off. |
redirect (Function newCallback) | Changes where the console's output is being directed. Arguments
|
resetErrorCount () | Sets the error count back to zero. |
resetWarningCount () | Sets the warning count back to zero. |
warn (String text) | Outputs a line of text to the console, prefixed by some standard warning flag defined by Console.WARNING_PREFIX. Arguments
|
writeLine (String text) | Outputs a line of text to the console, followed by a newline. Arguments
|
Name | Type | Description |
---|---|---|
ERROR_PREFIX | String | The text to be prepended to the body of an error message. Defaults to '** error: '. |
WARNING_PREFIX | String | The text to be prepended to the body of a warning message. Defaults to '** warning: '. |