Previous Page | Next Page

Logger and Appender Object Language Reference

ERROR Method



Logs an ERROR message if the specified logger accepts ERROR messages.
Applies to: logger object

Syntax
Arguments
Details
Example
See Also

Syntax

object.ERROR ("message");


Arguments

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.

Details

The error level designates error events that might allow the application to continue running. For more information about the logging levels, see Logging Thresholds.


Example

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;


See Also

Method:

DEBUG Method

FATAL Method

INFO Method

TRACE Method

WARN Method

Previous Page | Next Page | Top of Page