Class com.gContactSync.LOGGER
Defined in: Logger.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A simple class that logs messages.
|
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 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.
|
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.