Class Index | File Index

Classes


Class com.gContactSync.LOGGER


Defined in: Logger.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
A simple class that logs messages.
Field Summary
Field Attributes Field Name and Description
<static>  
com.gContactSync.LOGGER.mConsoleService
The console service (for logging to the error console)
<static>  
com.gContactSync.LOGGER.mErrorCount
The number of errors logged
<static>  
com.gContactSync.LOGGER.mWarningCount
The number of warnings logged
Method Summary
Method Attributes Method Name and Description
<static>  
com.gContactSync.LOGGER.LOG(aMessage)
Appends the message to the log file and adds a newline character after the message.
<static>  
com.gContactSync.LOGGER.LOG_ERROR(aMessage, aError)
Logs an error and increments the error count.
<static>  
com.gContactSync.LOGGER.LOG_WARNING(aWarningMessage, aError)
Logs a warning and updates the warning count.
<static>  
com.gContactSync.LOGGER.VERBOSE_LOG(aMessage)
Logs the message if verbose logging is enabled.
Class Detail
com.gContactSync.LOGGER()
A simple class that logs messages.
Field Detail
<static> com.gContactSync.LOGGER.mConsoleService
The console service (for logging to the error console)

<static> com.gContactSync.LOGGER.mErrorCount
The number of errors logged

<static> com.gContactSync.LOGGER.mWarningCount
The number of warnings logged
Method Detail
<static> com.gContactSync.LOGGER.LOG(aMessage)
Appends the message to the log file and adds a newline character after the message.
Parameters:
aMessage
{string} The message to append.

<static> com.gContactSync.LOGGER.LOG_ERROR(aMessage, aError)
Logs an error and increments the error count.
Parameters:
aMessage
{string} The error message.
aError
{string} Optional. The exception caught.

<static> com.gContactSync.LOGGER.LOG_WARNING(aWarningMessage, aError)
Logs a warning and updates the warning count.
Parameters:
aWarningMessage
{string} The warning message with info about the problem.
aError
{string} Optional. The exception caught.

<static> com.gContactSync.LOGGER.VERBOSE_LOG(aMessage)
Logs the message if verbose logging is enabled.
Parameters:
aMessage
{string} The message to log.

Documentation generated by JsDoc Toolkit 2.1.0 on Fri May 06 2011 09:24:18 GMT-0400 (EDT)