Logger and Appender Object Language Reference |
Logs an ERROR message if the specified logger accepts ERROR messages.
Applies to: |
logger object
|
|
object.ERROR
("message");
|
|
- object
-
specifies the name of the logger object.
- message
-
specifies the message to write at the error level.
Requirement: |
The message must be enclosed in
double quotation marks. |
The error level designates error events that might allow
the application to continue running. For more information about the logging
levels, see Logging Thresholds.
The following example creates an error message for the logger.
data _null_;
if _n_ = 1 then do;
declare logger logobj("testlog");
end;
logobj.error("Test error message");
run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.