Class pvr.logging.Logger
Provides a logger service that writes to the console or another logger object that supports the same
method signature.
Defined in: <pvr\logging\Logger.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
constructor(logger)
Creates a pvr.logging.Logger object that writes to the specified logger.
|
|
debug(location, message, extra)
Logs a debug message for the specified location and any extra data provided.
|
|
entry(location, extra)
Logs an entry message for the specified location and any extra data provided.
|
|
error(location, message, extra)
Logs an error message for the specified location and any extra data provided.
|
|
exit(location, extra)
Logs an exit message for the specified location and any extra data provided.
|
|
info(location, message, extra)
Logs an information message for the specified location and any extra data provided.
|
|
warn(location, message, extra)
Logs a warning message for the specified location and any extra data provided.
|
Method Detail
constructor(logger)
Creates a pvr.logging.Logger object that writes to the specified logger.
- Parameters:
- logger
- The logger.
debug(location, message, extra)
Logs a debug message for the specified location and any extra data provided.
Note: You must ensure that your extra data contains no infinite recursion.
- Parameters:
- location
- The location.
- message
- The debug message.
- extra
- The extra data to log.
entry(location, extra)
Logs an entry message for the specified location and any extra data provided.
Note: You must ensure that your extra data contains no infinite recursion.
- Parameters:
- location
- The location.
- extra
- The extra data to log.
error(location, message, extra)
Logs an error message for the specified location and any extra data provided.
Note: You must ensure that your extra data contains no infinite recursion.
- Parameters:
- location
- The location.
- message
- The error message.
- extra
- The extra data to log.
exit(location, extra)
Logs an exit message for the specified location and any extra data provided.
Note: You must ensure that your extra data contains no infinite recursion.
- Parameters:
- location
- The location.
- extra
- The extra data to log.
info(location, message, extra)
Logs an information message for the specified location and any extra data provided.
Note: You must ensure that your extra data contains no infinite recursion.
- Parameters:
- location
- The location.
- message
- The information message.
- extra
- The extra data to log.
warn(location, message, extra)
Logs a warning message for the specified location and any extra data provided.
Note: You must ensure that your extra data contains no infinite recursion.
- Parameters:
- location
- The location.
- message
- The warning message.
- extra
- The extra data to log.