Debug logging
Server-side scripts can write messages to AM debug logs by using the logger
object.
The scripting API does not use the logback logger that is used by the rest of AM. Instead, it uses an instance of
the custom AM |
AM does not log debug messages from scripts by default. To configure AM to log script messages, set the
debug log level for the amScript
service.
The following table lists the logger
methods.
Method | Parameters | Return Type | Description |
---|---|---|---|
|
|
|
Write Error Message to AM debug logs if ERROR level logging is enabled. |
|
|
|
Return |
|
|
|
Write Message to AM debug logs if MESSAGE level logging is enabled. |
|
|
|
Return |
|
|
|
Write Warning Message to AM debug logs if WARNING level logging is enabled. |
|
|
|
Return |